|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.utah.janosvm.kit.management.team.ResourceSampler
|
+--edu.utah.janosvm.kit.management.team.CPUMonitor.CPUSampler
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 |
private long last
private long diff
| Constructor Detail |
public CPUMonitor.CPUSampler()
| Method Detail |
public void update()
ResourceSamplerupdate in class ResourceSamplerpublic void empty()
ResourceSamplerempty in class ResourceSamplerpublic void output()
ResourceSampleroutput in class ResourceSamplerpublic java.lang.String toString()
toString in class ResourceSampler
|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||