Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.ExternalConnectionNode
Source: src/com/multiversesocial/hyperview/ExternalConnectionNode.java

ExternalConnectionNode

HyperView V3.2 — class
version V3.2 class

Summary

A wrapper for a node that is connected externally

Source file: ExternalConnectionNode.java

Hierarchy

Extends: Linkable

Implements: AsynchronousCallBack

Referenced HyperView classes

Media files used

Declaration & members

public class ExternalConnectionNode extends Linkable implements AsynchronousCallBack

Declared in src/com/multiversesocial/hyperview/ExternalConnectionNode.java, lines 6–69. 7 field(s), 2 constructor(s), 3 method(s). Every member has an anchor you can link to (e.g. ExternalConnectionNode.html#<id>).

Fields (7)

DeclarationValue / initializerDescriptionSource
volatile boolean connected= falseNo comment in source; not referenced by name in this type’s methods.line 9
volatile HyperLinkedList externalListenerListNo comment in source; assigned in ExternalConnectionNode(); used in addListener(), cleanUp(), asynchronousRun().line 10
String hostNo comment in source; assigned in ExternalConnectionNode().line 13
InetSocketAddress inetSocketAddressNo comment in source; assigned in ExternalConnectionNode().line 12
int portNo comment in source; assigned in ExternalConnectionNode().line 14
SocketChannel socketChannelNo comment in source; assigned in ExternalConnectionNode().line 11
volatile boolean valid= falseNo comment in source; assigned in ExternalConnectionNode().line 9

Constructors (2)

SignatureDescriptionSource
ExternalConnectionNode()1 statement(s); calls this(), Integer.parseInt().line 16
ExternalConnectionNode(ConnectionListener tListener, String tHost, int tPort)5 statement(s); calls super(), socketChannel.open(), socketChannel.configureBlocking(), any.printStackTrace(); creates HyperLinkedList, InetSocketAddress.line 21

Methods (3)

SignatureDescriptionSource
public void addListener(ExternalConnectionListener tExternalConnectionListener)1 statement(s); calls externalListenerList.dlStore().line 39
public void asynchronousRun(int tFlags, Object tObject)Dispatch async callback to registered external listeners.
Implements AsynchronousCallBack.asynchronousRun()
line 50
public void cleanUp()2 statement(s); calls externalListenerList.drain().line 44

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

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  {
Hits--