Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperExternalConnectionHandler
Source: src/com/multiversesocial/hyperview/HyperExternalConnectionHandler.java
Allocated node pool list ------------ System.out.println("EX2 def const.");
public class HyperExternalConnectionHandler implements Runnable, ThreadReport
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
public static volatile HyperLinkedList externalConnectionList | = new HyperLinkedList() | No comment in source; used in Disconnect(), isConnected(), getConnectedNode(), stop(), run() …; name appears in 4 other source file(s): HyperConnectionNode, HyperView, ServerViewMain, ShowExternalNodes. | |
static HyperLinkedList externalConnectionPool | = new HyperLinkedList("ExternalConnectionHandler.connectionPoolList") | Allocated node pool list | |
Thread externalConnectionTask | No comment in source; assigned in start(), stop(); used in run(). | ||
public static HyperLinkedList externalFinishList | = new HyperLinkedList() | No comment in source; used in run(). | |
public static HyperExternalConnectionHandler externalHandlerBase | No comment in source; assigned in HyperExternalConnectionHandler(), getExternalHandler(); name appears in 1 other source file(s): ShowExternalNodes. | ||
public static volatile HyperLinkedList impendingExternalConnectionAddList | = new HyperLinkedList() | No comment in source; used in connect(), stop(), run(). | |
int iteration | No comment in source; assigned in HyperExternalConnectionHandler(), run(), getRunInfo(). | ||
int[] listItems | No comment in source; assigned in HyperExternalConnectionHandler(). | ||
public static HyperView parentView | Todo needs multi view | ||
RunInfo runInfo | No comment in source; assigned in HyperExternalConnectionHandler(); used in start(), stop(), run(), getRunInfo(). | ||
public static final String version | = "1.23" | No comment in source; not referenced by name in this type’s methods. |
| Signature | Description | Source |
|---|---|---|
HyperExternalConnectionHandler() | 6 statement(s); calls super(), StackTrace.show(), System.exit(); creates RunInfo. | |
HyperExternalConnectionHandler(HyperConnectionHandler tHyperConnectionHandler) | 6 statement(s); calls super(), StackTrace.show(), System.exit(); creates RunInfo. |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public boolean active() | Returns false. | |
public static ExternalConnectionNode connect(ConnectionListener tListener, String tHost, int tPort) | 9 statement(s); calls HyperExternalConnectionHandler.getExternalHandler(), impendingExternalConnectionAddList.dlStore(), impendingExternalConnectionAddList.notifyAll(), tNode.toString(), tNode.host.equals(); creates ExternalConnectionNode. | |
public void delay(int tWaitTime) | 2 statement(s); calls wait(); creates Object. | |
public static void Disconnect(ExternalConnectionNode tNode) | Cont ContainerLeaveChannel / CloseNetXecChannel teardown for one node. | |
public ExternalConnectionNode getConnectedNode(String tAddress, int tSourcePort) | 5 statement(s); calls tServerAddress.equals(), externalConnectionList.notifyAll(), any.printStackTrace(), System.exit(). | |
public static HyperConnectionHandler getConnectionBase() | Returns (HyperConnectionHandler)HyperConnectionHandler.connectionHandlerList.listBase. | |
public static HyperExternalConnectionHandler getExternalHandler() | 4 statement(s); calls externalHandlerBase.start(), externalHandlerBase.notifyAll(), any.printStackTrace(); creates HyperExternalConnectionHandler. | |
public static HyperExternalConnectionHandler getExternalHandler(HyperConnectionHandler tHyperConnectionHandler) | 3 statement(s); calls StackTrace.show(), System.exit(), externalHandlerBase.start(), any.printStackTrace(); creates HyperExternalConnectionHandler. | |
public static HyperLinkedList getExternalList() | 2 statement(s); calls HyperExternalConnectionHandler.getExternalHandler(). | |
ExternalConnectionNode getExternalNode(ConnectionListener tListener, String tHost, int tPort) | 3 statement(s); calls externalConnectionPool.dlDelete(), externalConnectionPool.notifyAll(); creates ExternalConnectionNode. | |
public RunInfo getRunInfo() | 7 statement(s). | |
public boolean isConnected(String tAddress, int tSourcePort) | 6 statement(s); calls tServerAddress.substring(), tServerAddress.indexOf(), System.exit(), tServerAddress.equals(), externalConnectionList.notifyAll() …. | |
public void run() | 7 statement(s); calls Thread.currentThread(), impendingExternalConnectionAddList.notifyAll(), impendingExternalConnectionAddList.wait(), externalFinishList.dlStore(), impendingExternalConnectionAddList.dlDelete() …; creates HyperPop. | |
public void start() | 4 statement(s); calls externalConnectionTask.setName(), externalConnectionTask.start(), parentView.hyperExec.addThread(); creates Thread. | |
public void stop() | 3 statement(s); calls parentView.hyperExec.remThread(), externalConnectionList.notifyAll(). | |
public void systemLink(Linkable tLnkable) | Register a system-level linkable on the external connection list. |
public class ExternalConnectionIOHandler implements Runnable
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
volatile Thread externalIOTask | No comment in source; assigned in start(), stop(); used in run(). |
| Signature | Description | Source |
|---|---|---|
public ExternalConnectionIOHandler() | Implicit default constructor generated by the compiler (not written in the source). |
| Signature | Description | Source |
|---|---|---|
public void run() | 3 statement(s); calls Thread.currentThread(), externalConnectionList.notifyAll(), externalConnectionList.wait(). | |
public void start() | 3 statement(s); calls externalIOTask.start(), externalIOTask.setPriority(); creates Thread. | |
public void stop() | Sets externalIOTask = null. |
static call — HyperConnectionHandler.java, line 302
301 // todo make concurrent static method called from HyperConnectionHandler.class 302 externalConnectionHandler = HyperExternalConnectionHandler.getExternalHandler(tHandler);
declaration — ShowExternalNodes.java, line 14
14 HyperExternalConnectionHandler externalConnectionHandler = HyperExternalConnectionHandler.externalHandlerBase;
static call — HyperView.java, line 1577
1577 externalConnectionList = HyperExternalConnectionHandler.getExternalHandler().externalConnectionList;