Package org.onosproject.cpman
Enum ControlMetricType
- java.lang.Object
-
- java.lang.Enum<ControlMetricType>
-
- org.onosproject.cpman.ControlMetricType
-
- All Implemented Interfaces:
Serializable
,Comparable<ControlMetricType>
public enum ControlMetricType extends Enum<ControlMetricType>
A set of metric type used in control plane.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ControlMetricType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ControlMetricType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INBOUND_PACKET
public static final ControlMetricType INBOUND_PACKET
-
OUTBOUND_PACKET
public static final ControlMetricType OUTBOUND_PACKET
-
FLOW_MOD_PACKET
public static final ControlMetricType FLOW_MOD_PACKET
-
FLOW_REMOVED_PACKET
public static final ControlMetricType FLOW_REMOVED_PACKET
-
REQUEST_PACKET
public static final ControlMetricType REQUEST_PACKET
-
REPLY_PACKET
public static final ControlMetricType REPLY_PACKET
-
NUM_OF_CORES
public static final ControlMetricType NUM_OF_CORES
-
NUM_OF_CPUS
public static final ControlMetricType NUM_OF_CPUS
-
CPU_SPEED
public static final ControlMetricType CPU_SPEED
-
CPU_LOAD
public static final ControlMetricType CPU_LOAD
-
TOTAL_CPU_TIME
public static final ControlMetricType TOTAL_CPU_TIME
-
SYS_CPU_TIME
public static final ControlMetricType SYS_CPU_TIME
-
USER_CPU_TIME
public static final ControlMetricType USER_CPU_TIME
-
CPU_IDLE_TIME
public static final ControlMetricType CPU_IDLE_TIME
-
MEMORY_USED_RATIO
public static final ControlMetricType MEMORY_USED_RATIO
-
MEMORY_FREE_RATIO
public static final ControlMetricType MEMORY_FREE_RATIO
-
MEMORY_USED
public static final ControlMetricType MEMORY_USED
-
MEMORY_FREE
public static final ControlMetricType MEMORY_FREE
-
MEMORY_TOTAL
public static final ControlMetricType MEMORY_TOTAL
-
DISK_READ_BYTES
public static final ControlMetricType DISK_READ_BYTES
-
DISK_WRITE_BYTES
public static final ControlMetricType DISK_WRITE_BYTES
-
NW_INCOMING_BYTES
public static final ControlMetricType NW_INCOMING_BYTES
-
NW_OUTGOING_BYTES
public static final ControlMetricType NW_OUTGOING_BYTES
-
NW_INCOMING_PACKETS
public static final ControlMetricType NW_INCOMING_PACKETS
-
NW_OUTGOING_PACKETS
public static final ControlMetricType NW_OUTGOING_PACKETS
-
-
Method Detail
-
values
public static ControlMetricType[] 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 (ControlMetricType c : ControlMetricType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlMetricType 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
-
-