Package ej.kf
Enum ResourceControlListener.StopCause
- java.lang.Object
-
- java.lang.Enum<ResourceControlListener.StopCause>
-
- ej.kf.ResourceControlListener.StopCause
-
- All Implemented Interfaces:
Serializable,Comparable<ResourceControlListener.StopCause>
- Enclosing interface:
- ResourceControlListener
public static enum ResourceControlListener.StopCause extends Enum<ResourceControlListener.StopCause>
A stop cause. Defines the reason why the Resource Control Manager stopped a Feature.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceControlListener.StopCausevalueOf(String name)Returns the enum constant of this type with the specified name.static ResourceControlListener.StopCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEMORY
public static final ResourceControlListener.StopCause MEMORY
Stop cause for a Feature stopped when there is memory pressure.- See Also:
Feature.getCriticality()
-
WATCHDOG
public static final ResourceControlListener.StopCause WATCHDOG
Stop cause for a Feature stopped by the watchdog.
-
-
Method Detail
-
values
public static ResourceControlListener.StopCause[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceControlListener.StopCause c : ResourceControlListener.StopCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceControlListener.StopCause 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 nameNullPointerException- if the argument is null
-
-