Package org.onosproject.net.meter
Class MeterKey
- java.lang.Object
-
- org.onosproject.net.meter.MeterKey
-
public final class MeterKey extends Object
A meter key represents a meter uniquely.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DeviceIddeviceId()booleanequals(Object o)inthashCode()static MeterKeykey(DeviceId deviceId, MeterCellId id)static MeterKeykey(DeviceId deviceId, MeterId id)Deprecated.in onos-2.5 replaced bykey(DeviceId,MeterCellId)extends MeterKey to support both MeterId and PiMeterCellIdMeterCellIdmeterCellId()MeterIdmeterId()Deprecated.in onos-2.5 replaced bykey(DeviceId,MeterCellId)extends MeterKey to support both MeterId and PiMeterCellIdStringtoString()
-
-
-
Method Detail
-
deviceId
public DeviceId deviceId()
-
meterId
@Deprecated public MeterId meterId()
Deprecated.in onos-2.5 replaced bykey(DeviceId,MeterCellId)extends MeterKey to support both MeterId and PiMeterCellId- Returns:
- a MeterId iff the id is a MeterId otherwise, return null
-
meterCellId
public MeterCellId meterCellId()
-
key
@Deprecated public static MeterKey key(DeviceId deviceId, MeterId id)
Deprecated.in onos-2.5 replaced bykey(DeviceId,MeterCellId)extends MeterKey to support both MeterId and PiMeterCellId- Parameters:
deviceId- a DeviceIdid- a MeterId- Returns:
- a MeterKey contains DeviceId and MeterId
-
key
public static MeterKey key(DeviceId deviceId, MeterCellId id)
-
-