Package org.onosproject.net.behaviour
Enum BngProgrammable.BngCounterType
- java.lang.Object
-
- java.lang.Enum<BngProgrammable.BngCounterType>
-
- org.onosproject.net.behaviour.BngProgrammable.BngCounterType
-
- All Implemented Interfaces:
Serializable
,Comparable<BngProgrammable.BngCounterType>
- Enclosing interface:
- BngProgrammable
public static enum BngProgrammable.BngCounterType extends Enum<BngProgrammable.BngCounterType>
Counters to implement BNG accounting. Some of these counters can be unsupported by the implementations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROL_PLANE
Count the received control plane packets.DOWNSTREAM_DROPPED
Count the dropped packets in the downstream direction.DOWNSTREAM_RX
Count the received packets in the downstream direction.DOWNSTREAM_TX
Count the transmitted packets in the downstream direction.UPSTREAM_DROPPED
Count the dropped packets in the upstream direction.UPSTREAM_RX
Count the received packets in the upstream direction.UPSTREAM_TX
Count the transmitted packets in the upstream direction.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BngProgrammable.BngCounterType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BngProgrammable.BngCounterType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOWNSTREAM_RX
public static final BngProgrammable.BngCounterType DOWNSTREAM_RX
Count the received packets in the downstream direction.
-
DOWNSTREAM_TX
public static final BngProgrammable.BngCounterType DOWNSTREAM_TX
Count the transmitted packets in the downstream direction.
-
DOWNSTREAM_DROPPED
public static final BngProgrammable.BngCounterType DOWNSTREAM_DROPPED
Count the dropped packets in the downstream direction.
-
UPSTREAM_RX
public static final BngProgrammable.BngCounterType UPSTREAM_RX
Count the received packets in the upstream direction.
-
UPSTREAM_TX
public static final BngProgrammable.BngCounterType UPSTREAM_TX
Count the transmitted packets in the upstream direction.
-
UPSTREAM_DROPPED
public static final BngProgrammable.BngCounterType UPSTREAM_DROPPED
Count the dropped packets in the upstream direction.
-
CONTROL_PLANE
public static final BngProgrammable.BngCounterType CONTROL_PLANE
Count the received control plane packets.
-
-
Method Detail
-
values
public static BngProgrammable.BngCounterType[] 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 (BngProgrammable.BngCounterType c : BngProgrammable.BngCounterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BngProgrammable.BngCounterType 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
-
-