public enum ActivityLevel extends java.lang.Enum<ActivityLevel> implements Localized
Modifier and Type | Method and Description |
---|---|
boolean |
isHot()
Returns whether the activity level is Hot or Active, meaning the system allows load balancing.
|
boolean |
isWarm()
Returns whether the system is at least "warm", meaning it should be doing something.
|
java.lang.String |
toString(java.util.Locale locale) |
static ActivityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActivityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityLevel Undecided
public static final ActivityLevel Cold
public static final ActivityLevel Warm
public static final ActivityLevel Hot
public static final ActivityLevel Active
public static ActivityLevel[] values()
for (ActivityLevel c : ActivityLevel.values()) System.out.println(c);
public static ActivityLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isHot()
public boolean isWarm()