Package org.onosproject.cluster
Enum ClusterEvent.InstanceType
- java.lang.Object
-
- java.lang.Enum<ClusterEvent.InstanceType>
-
- org.onosproject.cluster.ClusterEvent.InstanceType
-
- All Implemented Interfaces:
Serializable
,Comparable<ClusterEvent.InstanceType>
- Enclosing class:
- ClusterEvent
public static enum ClusterEvent.InstanceType extends Enum<ClusterEvent.InstanceType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterEvent.InstanceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClusterEvent.InstanceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONOS
public static final ClusterEvent.InstanceType ONOS
Signifies that the event refers to an ONOS instance.
-
STORAGE
public static final ClusterEvent.InstanceType STORAGE
Signifies that the event refers to an Atomix instance.
-
UNKNOWN
public static final ClusterEvent.InstanceType UNKNOWN
Signifies that the event refers to an Unknown instance.
-
-
Method Detail
-
values
public static ClusterEvent.InstanceType[] 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 (ClusterEvent.InstanceType c : ClusterEvent.InstanceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterEvent.InstanceType 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
-
-