Package org.onosproject.net.intent
Enum PathIntent.ProtectionType
- java.lang.Object
-
- java.lang.Enum<PathIntent.ProtectionType>
-
- org.onosproject.net.intent.PathIntent.ProtectionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PathIntent.ProtectionType>
- Enclosing class:
- PathIntent
@Beta public static enum PathIntent.ProtectionType extends java.lang.Enum<PathIntent.ProtectionType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathIntent.ProtectionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PathIntent.ProtectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIMARY
public static final PathIntent.ProtectionType PRIMARY
Intent within primary path.
-
BACKUP
public static final PathIntent.ProtectionType BACKUP
Intent within backup path.
-
FAILOVER
public static final PathIntent.ProtectionType FAILOVER
Intent whose flow rule serves as the fast failover between primary and backup paths.
-
-
Method Detail
-
values
public static PathIntent.ProtectionType[] 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 (PathIntent.ProtectionType c : PathIntent.ProtectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathIntent.ProtectionType 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
-
-