|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--MicroTAPAS.mobility.CapsMonitorAgent
Monitor agent responsible for monitoring the offered capabilities with the required capabilities of an actor. If the offered caps. are found to be 'less' than the required, an actorMove procedure will be set in motion.
| Field Summary | |
private static boolean |
DEBUG
Determines whether debug info to be sent to debug-server. |
private boolean |
isActive
Indicates whether this client is active or not. |
private CapabilitySet |
nodeCaps
The nodes capabilities - can change. |
private MobilityApplicationActor |
parent
Reference to parent. |
private long |
timer
Interval between checks. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
CapsMonitorAgent(MobilityApplicationActor pParent)
Constructor. |
|
| Method Summary | |
void |
destroy()
Destroy method |
void |
monitorLoop()
Main procedure in this thread that takes care of monitoring offered vs required capabilities. |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final boolean DEBUG
private long timer
private CapabilitySet nodeCaps
private MobilityApplicationActor parent
private boolean isActive
| Constructor Detail |
public CapsMonitorAgent(MobilityApplicationActor pParent)
pParent - Reference to the parent object.| 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 monitorLoop()
throws java.lang.Exception
Excption
java.lang.Exceptionpublic Item status()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||