JanosVM v1.0 API

edu.utah.janosvm.kit.management.team
Class CPUMonitor.CPUSampler

java.lang.Object
  |
  +--edu.utah.janosvm.kit.management.team.ResourceSampler
        |
        +--edu.utah.janosvm.kit.management.team.CPUMonitor.CPUSampler
Enclosing class:
CPUMonitor

static final class CPUMonitor.CPUSampler
extends ResourceSampler

A CPU ResourceSampler.


Field Summary
private  long diff
          The difference between the last value sampled and the current.
private  long last
          The last value sampled.
 
Fields inherited from class edu.utah.janosvm.kit.management.team.ResourceSampler
th
 
Constructor Summary
CPUMonitor.CPUSampler()
          Construct an empty CPUSampler.
 
Method Summary
 void empty()
          Update the sampler's state for a dead/unreachable team.
 void output()
          Output the sampler state.
 java.lang.String toString()
           
 void update()
          Update the sampler's state.
 
Methods inherited from class edu.utah.janosvm.kit.management.team.ResourceSampler
getTeam, setTeam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

last

private long last
The last value sampled.

diff

private long diff
The difference between the last value sampled and the current.
Constructor Detail

CPUMonitor.CPUSampler

public CPUMonitor.CPUSampler()
Construct an empty CPUSampler.
Method Detail

update

public void update()
Description copied from class: ResourceSampler
Update the sampler's state. Note: This is called while in a visit, so nothing should be printed/manipulated/etc...
Overrides:
update in class ResourceSampler

empty

public void empty()
Description copied from class: ResourceSampler
Update the sampler's state for a dead/unreachable team.
Overrides:
empty in class ResourceSampler

output

public void output()
Description copied from class: ResourceSampler
Output the sampler state. Note: Unlike update, this is called within the monitor's team.
Overrides:
output in class ResourceSampler

toString

public java.lang.String toString()
Overrides:
toString in class ResourceSampler

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