Package org.onosproject.net.pi.runtime
Class PiCloneSessionEntryHandle
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiHandle
-
- org.onosproject.net.pi.runtime.PiPreEntryHandle
-
- org.onosproject.net.pi.runtime.PiCloneSessionEntryHandle
-
@Beta public final class PiCloneSessionEntryHandle extends PiPreEntryHandle
Global identifier of a PI clone session entry applied to the packet replication engine (PRE) of a device, uniquely defined by a device ID, and session ID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
static PiCloneSessionEntryHandle
of(DeviceId deviceId, int sessionId)
Creates a new handle for the given device ID and PI clone session ID.static PiCloneSessionEntryHandle
of(DeviceId deviceId, PiCloneSessionEntry entry)
Creates a new handle for the given device ID and PI clone session entry.PiPreEntryType
preEntryType()
Returns the type of PRE entry associated with this handle.int
sessionId()
Returns the clone session ID associated with this handle.String
toString()
-
Methods inherited from class org.onosproject.net.pi.runtime.PiPreEntryHandle
entityType
-
-
-
-
Method Detail
-
of
public static PiCloneSessionEntryHandle of(DeviceId deviceId, int sessionId)
Creates a new handle for the given device ID and PI clone session ID.- Parameters:
deviceId
- device IDsessionId
- clone session ID- Returns:
- PI clone session entry handle
-
of
public static PiCloneSessionEntryHandle of(DeviceId deviceId, PiCloneSessionEntry entry)
Creates a new handle for the given device ID and PI clone session entry.- Parameters:
deviceId
- device IDentry
- PI clone session entry- Returns:
- PI clone session entry handle
-
sessionId
public int sessionId()
Returns the clone session ID associated with this handle.- Returns:
- session ID
-
preEntryType
public PiPreEntryType preEntryType()
Description copied from class:PiPreEntryHandle
Returns the type of PRE entry associated with this handle.- Specified by:
preEntryType
in classPiPreEntryHandle
- Returns:
- PRE entry type
-
-