JanosVM v1.0 API

edu.utah.janosvm.resources
Class CPUResource

java.lang.Object
  |
  +--edu.utah.janosvm.resources.CPUResource

public final class CPUResource
extends java.lang.Object

Provides java level access to the current team's CPU resource.


Constructor Summary
private CPUResource()
          Its a static only class.
 
Method Summary
static void change(CPUSpec cs)
           
static long getIdle()
           
static long getUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait, wait0
 

Constructor Detail

CPUResource

private CPUResource()
Its a static only class.
Method Detail

change

public static void change(CPUSpec cs)
                   throws ResourceSpecException
Parameters:
cs - The new CPUSpec for this team.

getUsage

public static long getUsage()
Returns:
The CPU usage for the current team. There are no defined units for the value.

getIdle

public static long getIdle()
Returns:
The total idle time for the VM.

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