Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.NetXec
Source: src/com/multiversesocial/hyperview/NetXec.java
By Tony Swain 1997. A class for non blocking lightweight thread supervision with deadlock detection.
public class NetXec implements Runnable, NetXecConstants, RunInfoConstants, ThreadReport
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
BufferedInputStream bis | No comment in source; not referenced by name in this type’s methods. | ||
HyperView curView | No comment in source; assigned in NetXec(); used in run(), echo(). | ||
Thread execTask | No comment in source; assigned in start(), stop(), kickStart(); used in run(). | ||
Graphics graphics | No comment in source; not referenced by name in this type’s methods. | ||
volatile NetXecPane infoPane | No comment in source; used in run(), echo(). | ||
String intListString | = "" | No comment in source; assigned in NetXec(). | |
int iteration | No comment in source; assigned in NetXec(), run(), getRunInfo(); used in start(). | ||
long lastRun | No comment in source; assigned in NetXec(), getRunInfo(). | ||
static final int MAX_THREADS | = 26 | No comment in source; used in NetXec(). | |
ThreadGroup monitorGroup | No comment in source; assigned in start(). | ||
Thread Monitors | No comment in source; not referenced by name in this type’s methods. | ||
static NetXec netXecBase | No comment in source; assigned in NetXec(); used in getNetXec(); name appears in 1 other source file(s): HyperView. | ||
long now | No comment in source; assigned in NetXec(), start(), getRunInfo(); used in run(), echo(). | ||
int nxFlags | No comment in source; assigned in NetXec(), run(), echo(), echoToggle(). | ||
RunInfo runInfo | No comment in source; assigned in NetXec(), addThread(); used in start(), stop(), run(), getRunInfo(), kickStart(). | ||
long runLag | No comment in source; assigned in NetXec(), getRunInfo(). | ||
static Runtime runTime | = Runtime.getRuntime() | No comment in source; name appears in 2 other source file(s): DisconnectTimer, HyperConnectionHandler. | |
long startTime | No comment in source; assigned in NetXec(), start(), getRunInfo(); used in run(), echo(). | ||
FileInputStream stdin | No comment in source; not referenced by name in this type’s methods. | ||
Object syncClient | No comment in source; assigned in NetXec(). | ||
ThreadRec[] thread | No comment in source; assigned in NetXec(), addThread(), remThread(), removeAllThreads(); used in run(), echo(). | ||
RunInfo tmpRunInfo | No comment in source; assigned in run(), echo(). | ||
ThreadRec tmpThreadRec | No comment in source; not referenced by name in this type’s methods. | ||
volatile int totalThreads | No comment in source; assigned in NetXec(), addThread(), remThread(), removeAllThreads(); used in run(), echo(). | ||
final String VERSIONSTRING | = "NetXec() V1.25" | No comment in source; not referenced by name in this type’s methods. | |
int waitTime | No comment in source; assigned in NetXec(), getRunInfo(); used in run(). |
| Signature | Description | Source |
|---|---|---|
NetXec(HyperView tView) | 16 statement(s); calls super(), System.exit(); creates RunInfo. |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public synchronized int addThread(Thread t, RunInfo r) | 11 statement(s); calls t.toString(), System.exit(), notifyAll(); creates ThreadRec, RunInfo. | |
public void echo() | 7 statement(s); calls thread[i].client.getName(), thread[i].runInfo.getRunInfo(), zombieExcluded(), any0.printStackTrace(), curView.resetTotals() …. | |
public void echoToggle() | 1 statement(s). | |
static NetXec getNetXec() | Returns netXecBase. | |
public RunInfo getRunInfo() | 7 statement(s). | |
public String kickStart() | 10 statement(s); calls execTask.interrupt(), execTask.dumpStack(), execTask.start(); creates Thread. | |
public synchronized void removeAllThreads() | 5 statement(s); calls notifyAll(). | |
public synchronized void remThread(Thread t, int num) | 6 statement(s); calls notifyAll(). | |
public void run() | 8 statement(s); calls Thread.currentThread(), thread[i].client.getName(), thread[i].runInfo.getRunInfo(), npex.toString(), npex.printStackTrace() …. | |
public synchronized void start() | 11 statement(s); calls tTask.interrupt(), execTask.setPriority(), execTask.setName(), execTask.start(), System.currentTimeMillis() …; creates ThreadGroup, Thread. | |
public synchronized void stop() | 4 statement(s); calls tTask.interrupt(). | |
static boolean zombieExcluded(int tNum) | 1 statement(s). |
instantiation — HyperView.java, line 1203
1203 hyperExec = new NetXec(this);
static call — EchoThreads.java, line 12
12 NetXec.getNetXec().echo();
declaration — HyperXec.java, line 103
103 NetXec pExec = null;