uk.ac.soton.itinnovation.grid.service.sla
Enum ActivityState
java.lang.Object
java.lang.Enum<ActivityState>
uk.ac.soton.itinnovation.grid.service.sla.ActivityState
- All Implemented Interfaces:
- Serializable, Comparable<ActivityState>
public enum ActivityState
- extends Enum<ActivityState>
RUNNING: when the SLA Service receives a startActivity()
PAUSED: unused
FINISHED: when the SLA Service receives a usage notification saying CURRENT_ACTIVITIES = 0
|
Method Summary |
static ActivityState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ActivityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
RUNNING
public static final ActivityState RUNNING
PAUSED
public static final ActivityState PAUSED
FINISHED
public static final ActivityState FINISHED
values
public static final ActivityState[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ActivityState c : ActivityState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ActivityState valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.