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 booleanequals(Object o)inthashCode()static PiCloneSessionEntryHandleof(DeviceId deviceId, int sessionId)Creates a new handle for the given device ID and PI clone session ID.static PiCloneSessionEntryHandleof(DeviceId deviceId, PiCloneSessionEntry entry)Creates a new handle for the given device ID and PI clone session entry.PiPreEntryTypepreEntryType()Returns the type of PRE entry associated with this handle.intsessionId()Returns the clone session ID associated with this handle.StringtoString()-
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:PiPreEntryHandleReturns the type of PRE entry associated with this handle.- Specified by:
preEntryTypein classPiPreEntryHandle- Returns:
- PRE entry type
-
-