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 PiEntityTypeentityType()Returns the type of entity identified by this handle.booleanequals(java.lang.Object obj)inthashCode()PiMatchKeymatchKey()Returns the match key associated with this handle.static PiTableEntryHandleof(DeviceId deviceId, PiTableEntry entry)Creates a new handle for the given PI table entry and device ID.java.util.OptionalIntpriority()Returns the optional priority associated with this handle.PiTableIdtableId()Returns the table ID associated with this handle.java.lang.StringtoString()
-
-
-
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:PiHandleReturns the type of entity identified by this handle.- Specified by:
entityTypein classPiHandle- Returns:
- PI entity type
-
-