Package org.onosproject.net.intent
Enum IntentEvent.Type
- java.lang.Object
-
- java.lang.Enum<IntentEvent.Type>
-
- org.onosproject.net.intent.IntentEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IntentEvent.Type>
- Enclosing class:
- IntentEvent
public static enum IntentEvent.Type extends java.lang.Enum<IntentEvent.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CORRUPT
Signifies that an intent has failed installation or withdrawal, but still hold some or all of its resources.FAILED
Signifies that an intent has failed compilation and that it cannot be satisfied by the network at this time.INSTALL_REQ
Signifies that an intent is to be installed or reinstalled.INSTALLED
Signifies that an intent has been successfully installed.PURGED
Signifies that an intent has been purged from the system.REALLOCATING
Signifies that an intent is being reallocated.WITHDRAW_REQ
Signifies that an intent will be withdrawn.WITHDRAWN
Signifies that an intent has been withdrawn from the system.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntentEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IntentEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTALL_REQ
public static final IntentEvent.Type INSTALL_REQ
Signifies that an intent is to be installed or reinstalled.
-
INSTALLED
public static final IntentEvent.Type INSTALLED
Signifies that an intent has been successfully installed.
-
FAILED
public static final IntentEvent.Type FAILED
Signifies that an intent has failed compilation and that it cannot be satisfied by the network at this time.
-
WITHDRAW_REQ
public static final IntentEvent.Type WITHDRAW_REQ
Signifies that an intent will be withdrawn.
-
WITHDRAWN
public static final IntentEvent.Type WITHDRAWN
Signifies that an intent has been withdrawn from the system.
-
CORRUPT
public static final IntentEvent.Type CORRUPT
Signifies that an intent has failed installation or withdrawal, but still hold some or all of its resources. (e.g. link reservations, flow rules on the data plane, etc.)
-
PURGED
public static final IntentEvent.Type PURGED
Signifies that an intent has been purged from the system.
-
REALLOCATING
public static final IntentEvent.Type REALLOCATING
Signifies that an intent is being reallocated.
-
-
Method Detail
-
values
public static IntentEvent.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 (IntentEvent.Type c : IntentEvent.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 IntentEvent.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
-
-