Package org.onosproject.net.pi.runtime
Class PiTableEntryHandle
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiHandle
-
- org.onosproject.net.pi.runtime.PiTableEntryHandle
-
@Beta public final class PiTableEntryHandle extends PiHandle
Global identifier of a PI table entry applied on a device, uniquely defined by a device ID, table ID and match key.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PiEntityType
entityType()
Returns the type of entity identified by this handle.boolean
equals(java.lang.Object obj)
int
hashCode()
PiMatchKey
matchKey()
Returns the match key associated with this handle.static PiTableEntryHandle
of(DeviceId deviceId, PiTableEntry entry)
Creates a new handle for the given PI table entry and device ID.java.util.OptionalInt
priority()
Returns the optional priority associated with this handle.PiTableId
tableId()
Returns the table ID associated with this handle.java.lang.String
toString()
-
-
-
Method Detail
-
of
public static PiTableEntryHandle of(DeviceId deviceId, PiTableEntry entry)
Creates a new handle for the given PI table entry and device ID.- Parameters:
deviceId
- device IDentry
- PI table entry- Returns:
- PI table entry handle
-
tableId
public PiTableId tableId()
Returns the table ID associated with this handle.- Returns:
- table ID
-
matchKey
public PiMatchKey matchKey()
Returns the match key associated with this handle.- Returns:
- match key
-
priority
public java.util.OptionalInt priority()
Returns the optional priority associated with this handle.- Returns:
- optional priority
-
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
-
-