public final class MeterId extends org.onlab.util.Identifier<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.
|
| Modifier and Type | Method and Description |
|---|---|
static MeterId |
meterId(long id)
Creates a new meter identifier.
|
String |
toString() |
public static final long MAX
public static final MeterId SLOWPATH
public static final MeterId CONTROLLER
public static final MeterId ALL