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

Variable Index

 o resMgr
The ResourceMgr who starts this ResourceMonitor

Constructor Index

 o ResourceMonitor(ResourceMgr)
Creates new ResourceMonitor

Method Index

 o run()
Loops forever and checks on all active threads periodically.

Variables

 o resMgr
 protected ResourceMgr resMgr
The ResourceMgr who starts this ResourceMonitor

Constructors

 o ResourceMonitor
 protected ResourceMonitor(ResourceMgr r)
Creates new ResourceMonitor

Parameters:
r - the Resource manager that created this

Methods

 o 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
1