Package org.onosproject.store.flow
Enum ReplicaInfoEvent.Type
- java.lang.Object
-
- java.lang.Enum<ReplicaInfoEvent.Type>
-
- org.onosproject.store.flow.ReplicaInfoEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReplicaInfoEvent.Type>
- Enclosing class:
- ReplicaInfoEvent
public static enum ReplicaInfoEvent.Type extends java.lang.Enum<ReplicaInfoEvent.Type>
Types of Replica info event.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACKUPS_CHANGED
MASTER_CHANGED
Event to notify that master placement should be changed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReplicaInfoEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReplicaInfoEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASTER_CHANGED
public static final ReplicaInfoEvent.Type MASTER_CHANGED
Event to notify that master placement should be changed.
-
BACKUPS_CHANGED
public static final ReplicaInfoEvent.Type BACKUPS_CHANGED
-
-
Method Detail
-
values
public static ReplicaInfoEvent.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 (ReplicaInfoEvent.Type c : ReplicaInfoEvent.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 ReplicaInfoEvent.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
-
-