JanosVM v1.0 API

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.


Field Summary
private  TeamHandle th
          The team being sampled.
 
Constructor Summary
ResourceSampler()
          Construct an empty ResourceSampler.
 
Method Summary
abstract  void empty()
          Update the sampler's state for a dead/unreachable team.
 TeamHandle getTeam()
           
abstract  void output()
          Output the sampler state.
 void setTeam(TeamHandle th)
           
 java.lang.String toString()
           
abstract  void update()
          Update the sampler's state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

th

private TeamHandle th
The team being sampled.
Constructor Detail

ResourceSampler

public ResourceSampler()
Construct an empty ResourceSampler.
Method Detail

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

JanosVM v1.0 API

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