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.
 
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
 long getLimit()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.utah.janosvm.resources.ResourceSpec
find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getLimit

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

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