|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread backend.pingThread
Each instance of this class represents 1 ping call. The class is called from the backend. Since this class is threaded it can be called more then once for more then 1 ip and each ping call can be run at the same time.
Field Summary | |
static BlackBoard |
BBMethods
Stores the interface of the blackboard |
static int |
LINUX
|
static int |
SUN_OS
|
static int |
WINDOWS
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
pingThread()
Used when doing a singleton ping call |
|
pingThread(LanNode node)
Main constructor of the pingThread class. |
Method Summary | |
static boolean |
pinger(String ip)
This is where the ping call happens and where all the parsing of the output takes place. |
void |
run()
First execution point of the thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Field Detail |
public static final int WINDOWS
public static final int LINUX
public static final int SUN_OS
public static BlackBoard BBMethods
Constructor Detail |
public pingThread(LanNode node)
node
- Expects a lanNode from the blackboard. Once the ping call
is finished it will update the ping status of the nodepublic pingThread()
Method Detail |
public void run()
public static boolean pinger(String ip)
ip
- String containing a ip address to ping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |