Package org.onosproject.net.pi.runtime
Class PiCounterCellHandle
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiHandle
-
- org.onosproject.net.pi.runtime.PiCounterCellHandle
-
public final class PiCounterCellHandle extends PiHandle
Global identifier of a PI counter cell instantiated on a device, uniquely defined by a device ID and cell ID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PiCounterCellIdcellId()Returns the counter cell ID associated with this handle.PiEntityTypeentityType()Returns the type of entity identified by this handle.booleanequals(java.lang.Object obj)inthashCode()static PiCounterCellHandleof(DeviceId deviceId, PiCounterCell cell)Creates a new handle for the given device ID and counter cell.static PiCounterCellHandleof(DeviceId deviceId, PiCounterCellId cellId)Creates a new handle for the given device ID and counter cell ID.java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static PiCounterCellHandle of(DeviceId deviceId, PiCounterCellId cellId)
Creates a new handle for the given device ID and counter cell ID.- Parameters:
deviceId- device IDcellId- counter cell ID- Returns:
- new counter cell handle
-
of
public static PiCounterCellHandle of(DeviceId deviceId, PiCounterCell cell)
Creates a new handle for the given device ID and counter cell.- Parameters:
deviceId- device IDcell- counter cell- Returns:
- new counter cell handle
-
cellId
public PiCounterCellId cellId()
Returns the counter cell ID associated with this handle.- Returns:
- counter 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
-
-