Package org.onosproject.net.group
Enum GroupDescription.Type
- java.lang.Object
-
- java.lang.Enum<GroupDescription.Type>
-
- org.onosproject.net.group.GroupDescription.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GroupDescription.Type>
- Enclosing interface:
- GroupDescription
public static enum GroupDescription.Type extends java.lang.Enum<GroupDescription.Type>
Types of the group supported by ONOS.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
Multicast to all buckets in a group.CLONE
Similar toALL
but used for cloning of packets independently of the egress decision (singleton treatment or other group).FAILOVER
Uses the first live bucket in a group.INDIRECT
Single Bucket Group.SELECT
Load-balancing among different buckets in a group.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GroupDescription.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GroupDescription.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final GroupDescription.Type SELECT
Load-balancing among different buckets in a group.
-
INDIRECT
public static final GroupDescription.Type INDIRECT
Single Bucket Group.
-
ALL
public static final GroupDescription.Type ALL
Multicast to all buckets in a group.
-
CLONE
public static final GroupDescription.Type CLONE
Similar toALL
but used for cloning of packets independently of the egress decision (singleton treatment or other group).
-
FAILOVER
public static final GroupDescription.Type FAILOVER
Uses the first live bucket in a group.
-
-
Method Detail
-
values
public static GroupDescription.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 (GroupDescription.Type c : GroupDescription.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 GroupDescription.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
-
-