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 PiCounterCellId
cellId()
Returns the counter cell ID associated with this handle.PiEntityType
entityType()
Returns the type of entity identified by this handle.boolean
equals(java.lang.Object obj)
int
hashCode()
static PiCounterCellHandle
of(DeviceId deviceId, PiCounterCell cell)
Creates a new handle for the given device ID and counter cell.static PiCounterCellHandle
of(DeviceId deviceId, PiCounterCellId cellId)
Creates a new handle for the given device ID and counter cell ID.java.lang.String
toString()
-
-
-
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:PiHandle
Returns the type of entity identified by this handle.- Specified by:
entityType
in classPiHandle
- Returns:
- PI entity type
-
-