public final class MeterId extends Identifier<Long> implements MeterCellId
This ID uniquely identifies a meter cell within in a switch that maintains
only one meter instance. If a switch supports multiple meter instances (like
in P4), then PiMeterCellId should be
used. In this case, meter cells are defined starting with id=1 up to the
maximum number of cells that the switch can support. The OpenFlow protocol
also defines some additional virtual meter cells that can not be associated
with flows.
MeterCellId.MeterCellType| 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.
|
String |
toString()
Returns a string representation of a DeviceKeyId.
|
MeterCellId.MeterCellType |
type()
Return the type of this meter cell identifier.
|
equals, hashCode, idpublic static final long MAX
public static final MeterId SLOWPATH
public static final MeterId CONTROLLER
public static final MeterId ALL
public String toString()
IdentifiertoString in class Identifier<Long>public static MeterId meterId(long id)
id - the backing identifier valuepublic MeterCellId.MeterCellType type()
MeterCellIdtype in interface MeterCellId