public final class MeterId extends Identifier<java.lang.Long>
The meter_id field uniquely identifies a meter within a switch. Meters are defined starting with meter_id=1 up to the maximum number of meters that the switch can support. The OpenFlow protocol also defines some additional virtual meters that can not be associated with flows:
Modifier and Type | Field and Description |
---|---|
static MeterId |
ALL
Represents all meters for stat requests commands.
|
static MeterId |
CONTROLLER
Meter for controller connection.
|
static long |
MAX
Flow meters can use any number up to MAX.
|
static MeterId |
SLOWPATH
Meter for slow datapath, if any.
|
identifier
Modifier and Type | Method and Description |
---|---|
static MeterId |
meterId(long id)
Creates a new meter identifier.
|
java.lang.String |
toString()
Returns a string representation of a DeviceKeyId.
|
equals, hashCode, id
public static final long MAX
public static final MeterId SLOWPATH
public static final MeterId CONTROLLER
public static final MeterId ALL
public java.lang.String toString()
Identifier
toString
in class Identifier<java.lang.Long>
public static MeterId meterId(long id)
id
- the backing identifier value