edu.utah.janosvm.resources
Class StrideCPUSpec
java.lang.Object
|
+--edu.utah.janosvm.resources.ResourceSpec
|
+--edu.utah.janosvm.resources.CPUSpec
|
+--edu.utah.janosvm.resources.StrideCPUSpec
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class StrideCPUSpec
- extends CPUSpec
Specification for a stride scheduled CPU.
Field Summary |
static int |
DEFAULT_TICKETS
The default ticket count. |
static int |
KERNEL_TICKETS
The Kernel's ticket count, mainly for reference when determining your
own ticket counts. |
private static java.lang.Class |
THIS_CLASS
Cached reference to this class. |
Constructor Summary |
StrideCPUSpec(int tickets)
Construct a CPU resource specification that requires the number of
shares for the new team. |
StrideCPUSpec(long limit,
int tickets)
Construct a CPU resource specification that requires the number of
shares for the new team. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
KERNEL_TICKETS
public static final int KERNEL_TICKETS
- The Kernel's ticket count, mainly for reference when determining your
own ticket counts.
DEFAULT_TICKETS
public static final int DEFAULT_TICKETS
- The default ticket count.
THIS_CLASS
private static final java.lang.Class THIS_CLASS
- Cached reference to this class.
StrideCPUSpec
public StrideCPUSpec(long limit,
int tickets)
- Construct a CPU resource specification that requires the number of
shares for the new team.
- Parameters:
limit
- The CPU usage limit.tickets
- The number of tickets to give the team.
StrideCPUSpec
public StrideCPUSpec(int tickets)
- Construct a CPU resource specification that requires the number of
shares for the new team.
- Parameters:
tickets
- The number of tickets to give the team.
nativeConstructor
private void nativeConstructor(int tickets)
- Constructs the native part of the class.
getTickets
public int getTickets()
- Returns:
- The ticket count in this specification.
toString
public java.lang.String toString()
- Overrides:
toString
in class CPUSpec
nativeFinalizer
private void nativeFinalizer()
- Finalizer for any native data.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
defaultSpec
public static StrideCPUSpec defaultSpec()
- Returns:
- Construct a CPU resource specification that contains the default
ticket count.
current
public static StrideCPUSpec current()
- Returns:
- The StrideCPUSpec for the current team.
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