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

HyperExternalConnectionHandler

HyperView V3.2 — class
version V3.2 class

Summary

Allocated node pool list ------------ System.out.println("EX2 def const.");

Source file: HyperExternalConnectionHandler.java

Hierarchy

Extends: none

Implements: Runnable, ThreadReport

Referenced HyperView classes

Media files used

Declaration & members

public class HyperExternalConnectionHandler implements Runnable, ThreadReport

Declared in src/com/multiversesocial/hyperview/HyperExternalConnectionHandler.java, lines 12–652. 11 field(s), 2 constructor(s), 17 method(s), plus 1 nested type(s). Every member has an anchor you can link to (e.g. HyperExternalConnectionHandler.html#<id>).

Fields (11)

DeclarationValue / initializerDescriptionSource
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.line 16
static HyperLinkedList externalConnectionPool= new HyperLinkedList("ExternalConnectionHandler.connectionPoolList")Allocated node pool listline 22
Thread externalConnectionTaskNo comment in source; assigned in start(), stop(); used in run().line 20
public static HyperLinkedList externalFinishList= new HyperLinkedList()No comment in source; used in run().line 18
public static HyperExternalConnectionHandler externalHandlerBaseNo comment in source; assigned in HyperExternalConnectionHandler(), getExternalHandler(); name appears in 1 other source file(s): ShowExternalNodes.line 15
public static volatile HyperLinkedList impendingExternalConnectionAddList= new HyperLinkedList()No comment in source; used in connect(), stop(), run().line 17
int iterationNo comment in source; assigned in HyperExternalConnectionHandler(), run(), getRunInfo().line 28
int[] listItemsNo comment in source; assigned in HyperExternalConnectionHandler().line 29
public static HyperView parentViewTodo needs multi viewline 19
RunInfo runInfoNo comment in source; assigned in HyperExternalConnectionHandler(); used in start(), stop(), run(), getRunInfo().line 27
public static final String version= "1.23" (constant)No comment in source; not referenced by name in this type’s methods.line 14

Constructors (2)

SignatureDescriptionSource
HyperExternalConnectionHandler()6 statement(s); calls super(), StackTrace.show(), System.exit(); creates RunInfo.line 31
HyperExternalConnectionHandler(HyperConnectionHandler tHyperConnectionHandler)6 statement(s); calls super(), StackTrace.show(), System.exit(); creates RunInfo.line 46

Methods (17)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public boolean active()Returns false.line 556
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.line 131
public void delay(int tWaitTime)2 statement(s); calls wait(); creates Object.line 337
public static void Disconnect(ExternalConnectionNode tNode)Cont ContainerLeaveChannel / CloseNetXecChannel teardown for one node.line 174
public ExternalConnectionNode getConnectedNode(String tAddress, int tSourcePort)5 statement(s); calls tServerAddress.equals(), externalConnectionList.notifyAll(), any.printStackTrace(), System.exit().line 299
public static HyperConnectionHandler getConnectionBase()Returns (HyperConnectionHandler)HyperConnectionHandler.connectionHandlerList.listBase.line 88
public static HyperExternalConnectionHandler getExternalHandler()4 statement(s); calls externalHandlerBase.start(), externalHandlerBase.notifyAll(), any.printStackTrace(); creates HyperExternalConnectionHandler.line 61
public static HyperExternalConnectionHandler getExternalHandler(HyperConnectionHandler tHyperConnectionHandler)3 statement(s); calls StackTrace.show(), System.exit(), externalHandlerBase.start(), any.printStackTrace(); creates HyperExternalConnectionHandler.line 94
public static HyperLinkedList getExternalList()2 statement(s); calls HyperExternalConnectionHandler.getExternalHandler().line 563
ExternalConnectionNode getExternalNode(ConnectionListener tListener, String tHost, int tPort)3 statement(s); calls externalConnectionPool.dlDelete(), externalConnectionPool.notifyAll(); creates ExternalConnectionNode.line 584
public RunInfo getRunInfo()7 statement(s).
Implements ThreadReport.getRunInfo()
line 532
public boolean isConnected(String tAddress, int tSourcePort)6 statement(s); calls tServerAddress.substring(), tServerAddress.indexOf(), System.exit(), tServerAddress.equals(), externalConnectionList.notifyAll() ….line 249
public void run()7 statement(s); calls Thread.currentThread(), impendingExternalConnectionAddList.notifyAll(), impendingExternalConnectionAddList.wait(), externalFinishList.dlStore(), impendingExternalConnectionAddList.dlDelete() …; creates HyperPop.
Implements Runnable.run()
line 384
public void start()4 statement(s); calls externalConnectionTask.setName(), externalConnectionTask.start(), parentView.hyperExec.addThread(); creates Thread.line 232
public void stop()3 statement(s); calls parentView.hyperExec.remThread(), externalConnectionList.notifyAll().line 352

Nested & additional classes

ExternalConnectionIOHandler (nested type, lines 606–650)

public class ExternalConnectionIOHandler implements Runnable

Fields (1)

DeclarationValue / initializerDescriptionSource
volatile Thread externalIOTaskNo comment in source; assigned in start(), stop(); used in run().line 608

Constructors (1)

SignatureDescriptionSource
public ExternalConnectionIOHandler()Implicit default constructor generated by the compiler (not written in the source).line 606

Methods (3)

SignatureDescriptionSource
public void run()3 statement(s); calls Thread.currentThread(), externalConnectionList.notifyAll(), externalConnectionList.wait().
Implements Runnable.run()
line 622
public void start()3 statement(s); calls externalIOTask.start(), externalIOTask.setPriority(); creates Thread.line 610
public void stop()Sets externalIOTask = null.line 617

Examples

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

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