Package org.onosproject.net.pi.runtime
Class PiMeterCellHandle
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiHandle
-
- org.onosproject.net.pi.runtime.PiMeterCellHandle
-
@Beta public final class PiMeterCellHandle extends PiHandle
Global identifier of a PI meter cell instantiated on a device, uniquely defined by a device ID and meter cell ID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PiMeterCellId
cellId()
Returns the cell ID associated with this handle.PiEntityType
entityType()
Returns the type of entity identified by this handle.boolean
equals(java.lang.Object o)
int
hashCode()
static PiMeterCellHandle
of(DeviceId deviceId, PiMeterCellConfig meterCellConfig)
Creates a new handle for the given device ID and PI meter cell configuration.static PiMeterCellHandle
of(DeviceId deviceId, PiMeterCellId meterCellId)
Creates a new handle for the given device ID and PI meter cell ID.java.lang.String
toString()
-
-
-
Method Detail
-
of
public static PiMeterCellHandle of(DeviceId deviceId, PiMeterCellId meterCellId)
Creates a new handle for the given device ID and PI meter cell ID.- Parameters:
deviceId
- device IDmeterCellId
- meter cell ID- Returns:
- PI meter handle
-
of
public static PiMeterCellHandle of(DeviceId deviceId, PiMeterCellConfig meterCellConfig)
Creates a new handle for the given device ID and PI meter cell configuration.- Parameters:
deviceId
- device IDmeterCellConfig
- meter config- Returns:
- PI meter handle
-
cellId
public PiMeterCellId cellId()
Returns the cell ID associated with this handle.- Returns:
- cell ID
-
entityType
public PiEntityType entityType()
Description copied from class:PiHandle
Returns the type of entity identified by this handle.- Specified by:
entityType
in classPiHandle
- Returns:
- PI entity type
-
-