All Packages Class Hierarchy This Package Previous Next Index
Class magician.Node.ResourceMonitor
java.lang.Object
|
+----java.lang.Thread
|
+----magician.Node.ResourceMonitor
- public class ResourceMonitor
- extends Thread
ResourceMonitor executes continuously to check on resource
consumption of active threads on behalf of the Resource manager
- See Also:
- ResourceMgr
-
resMgr
- The ResourceMgr who starts this ResourceMonitor
-
ResourceMonitor(ResourceMgr)
- Creates new ResourceMonitor
-
run()
- Loops forever and checks on all active threads
periodically.
resMgr
protected ResourceMgr resMgr
- The ResourceMgr who starts this ResourceMonitor
ResourceMonitor
protected ResourceMonitor(ResourceMgr r)
- Creates new ResourceMonitor
- Parameters:
- r - the Resource manager that created this
run
public void run()
- Loops forever and checks on all active threads
periodically.
Note that this method is synchronized on 'this'
It wakes up every checkPeriod seconds to do the
checking or when a SmartPacket is done with its
execution by calling notify()
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index