|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.clackrouter.test.ConnectivityTestThread
public class ConnectivityTestThread
This class was created to test the IP allocation portion of the Basic IP tutorial assignment.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ConnectivityTestThread(java.util.ArrayList hosts,
javax.swing.JTextArea log)
|
|
| Method Summary | |
|---|---|
void |
killTest()
|
void |
log(java.lang.String s)
|
void |
receivedEchoReply(int id,
int seq)
|
void |
receivedEchoRequest(int id,
int seq)
|
void |
run()
|
void |
setOutput(java.io.PrintWriter o)
|
boolean |
testSuccess()
Tells you whether last test was successfull (i.e., no failures) Will return false unless the last test fully completed |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectivityTestThread(java.util.ArrayList hosts,
javax.swing.JTextArea log)
| Method Detail |
|---|
public void setOutput(java.io.PrintWriter o)
public void log(java.lang.String s)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic boolean testSuccess()
public void receivedEchoReply(int id,
int seq)
receivedEchoReply in interface ICMPListener
public void receivedEchoRequest(int id,
int seq)
receivedEchoRequest in interface ICMPListenerpublic void killTest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||