JanosVM v1.0 API

edu.utah.janosvm.resources
Class CPUSpec

java.lang.Object
  |
  +--edu.utah.janosvm.resources.ResourceSpec
        |
        +--edu.utah.janosvm.resources.CPUSpec
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
StrideCPUSpec

public class CPUSpec
extends ResourceSpec
implements java.lang.Cloneable

Base resource specification for CPU resources.


Field Summary
static long INFINITE_LIMIT
          Value used to indicate an infinite CPU usage limit.
 
Fields inherited from class edu.utah.janosvm.resources.ResourceSpec
found
 
Constructor Summary
CPUSpec()
          Construct a CPU resource specification with the default values.
CPUSpec(long limit)
          Construct a CPU resource specification with the given values.
 
Method Summary
(package private) static CPUSpec current(java.lang.Class cl)
           
 long getLimit()
           
private  void nativeConstructor(long limit)
          Constructs the native part of the class.
 java.lang.String toString()
           
 
Methods inherited from class edu.utah.janosvm.resources.ResourceSpec
find, nativeFind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

INFINITE_LIMIT

public static final long INFINITE_LIMIT
Value used to indicate an infinite CPU usage limit.
Constructor Detail

CPUSpec

public CPUSpec(long limit)
Construct a CPU resource specification with the given values.
Parameters:
limit - The CPU usage limit.

CPUSpec

public CPUSpec()
Construct a CPU resource specification with the default values.
Method Detail

nativeConstructor

private void nativeConstructor(long limit)
Constructs the native part of the class.

getLimit

public long getLimit()
Returns:
The CPU usage limit.

current

static CPUSpec current(java.lang.Class cl)
Parameters:
cl - The subclass of CPUSpec to create.
Returns:
A CPUSpec containing the current team's specification.

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