|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--MicroTAPAS.mobility.MicroPingClient
This class sends ping requests at certain intervals. This class operates in one
of two modes:
1) MobilityManager: Pings all nodes that are 'connected' to this MM,
2) MobilityAgent: Pings its own Director node. The interval between pings
is determined dynamically, where loss of connetcion will cut the current
interval in half, and a online connection of more than 10*initial interval
will increase the current interval by the initial interval.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
MicroPingClient(MicroTAPAS.mobility.MobilitySupportActor pParent)
Constructor |
|
| Method Summary | |
void |
destroy()
Destroy method |
boolean |
hasTerminalMoved()
Compares the old stored IP to the current IP to determine if a terminal has moved from one domain to another. |
void |
pingLoop()
Main procedure in this thread |
void |
run()
Run method that starts this thread |
Item |
status()
Status report of MicroPingClient in Item hierarchy of information elements. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MicroPingClient(MicroTAPAS.mobility.MobilitySupportActor pParent)
| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void destroy()
destroy in class java.lang.Thread
public void pingLoop()
throws java.lang.Exception
java.lang.Exceptionpublic boolean hasTerminalMoved()
public Item status()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||