edu.utah.janosvm.kit.management.team
Class ResourceSampler
java.lang.Object
|
+--edu.utah.janosvm.kit.management.team.ResourceSampler
- Direct Known Subclasses:
- CPUMonitor.CPUSampler, MemoryMonitor.MemorySampler
- public abstract class ResourceSampler
- extends java.lang.Object
Base class for objects that will be probing the team's resource state.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
th
private TeamHandle th
- The team being sampled.
ResourceSampler
public ResourceSampler()
- Construct an empty ResourceSampler.
setTeam
public void setTeam(TeamHandle th)
- Parameters:
th
- The team to sample.
getTeam
public TeamHandle getTeam()
- Returns:
- The team to sample.
update
public abstract void update()
- Update the sampler's state. Note: This is called while in a visit, so
nothing should be printed/manipulated/etc...
empty
public abstract void empty()
- Update the sampler's state for a dead/unreachable team.
output
public abstract void output()
- Output the sampler state. Note: Unlike update, this is called within
the monitor's team.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003