Package org.onosproject.cpman
Enum ControlResource.Type
- java.lang.Object
-
- java.lang.Enum<ControlResource.Type>
-
- org.onosproject.cpman.ControlResource.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ControlResource.Type>
- Enclosing class:
- ControlResource
public static enum ControlResource.Type extends java.lang.Enum<ControlResource.Type>
Control resource type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROL_MESSAGE
CPU
DISK
MEMORY
NETWORK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ControlResource.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ControlResource.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CPU
public static final ControlResource.Type CPU
-
MEMORY
public static final ControlResource.Type MEMORY
-
DISK
public static final ControlResource.Type DISK
-
NETWORK
public static final ControlResource.Type NETWORK
-
CONTROL_MESSAGE
public static final ControlResource.Type CONTROL_MESSAGE
-
-
Method Detail
-
values
public static ControlResource.Type[] 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 (ControlResource.Type c : ControlResource.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlResource.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-