Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.ExternalConnectionNode
Source: src/com/multiversesocial/hyperview/ExternalConnectionNode.java
A wrapper for a node that is connected externally
public class ExternalConnectionNode extends Linkable implements AsynchronousCallBack
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
volatile boolean connected | = false | No comment in source; not referenced by name in this type’s methods. | |
volatile HyperLinkedList externalListenerList | No comment in source; assigned in ExternalConnectionNode(); used in addListener(), cleanUp(), asynchronousRun(). | ||
String host | No comment in source; assigned in ExternalConnectionNode(). | ||
InetSocketAddress inetSocketAddress | No comment in source; assigned in ExternalConnectionNode(). | ||
int port | No comment in source; assigned in ExternalConnectionNode(). | ||
SocketChannel socketChannel | No comment in source; assigned in ExternalConnectionNode(). | ||
volatile boolean valid | = false | No comment in source; assigned in ExternalConnectionNode(). |
| Signature | Description | Source |
|---|---|---|
ExternalConnectionNode() | 1 statement(s); calls this(), Integer.parseInt(). | |
ExternalConnectionNode(ConnectionListener tListener, String tHost, int tPort) | 5 statement(s); calls super(), socketChannel.open(), socketChannel.configureBlocking(), any.printStackTrace(); creates HyperLinkedList, InetSocketAddress. |
| Signature | Description | Source |
|---|---|---|
public void addListener(ExternalConnectionListener tExternalConnectionListener) | 1 statement(s); calls externalListenerList.dlStore(). | |
public void asynchronousRun(int tFlags, Object tObject) | Dispatch async callback to registered external listeners. | |
public void cleanUp() | 2 statement(s); calls externalListenerList.drain(). |
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)
instantiation — HyperExternalConnectionHandler.java, line 147
147 tNode = new ExternalConnectionNode(tListener,tHost,tPort);
declaration — ConnectionListener.java, line 6
6 public int onConnect(ExternalConnectionNode tNode);
declaration — ExternalConnectionListener.java, line 6
6 public int onConnect(ExternalConnectionNode tNode)
7 {