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 PiMeterCellIdcellId()Returns the cell ID associated with this handle.PiEntityTypeentityType()Returns the type of entity identified by this handle.booleanequals(java.lang.Object o)inthashCode()static PiMeterCellHandleof(DeviceId deviceId, PiMeterCellConfig meterCellConfig)Creates a new handle for the given device ID and PI meter cell configuration.static PiMeterCellHandleof(DeviceId deviceId, PiMeterCellId meterCellId)Creates a new handle for the given device ID and PI meter cell ID.java.lang.StringtoString()
-
-
-
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:PiHandleReturns the type of entity identified by this handle.- Specified by:
entityTypein classPiHandle- Returns:
- PI entity type
-
-