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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.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.java.lang.StringtoString()- 
Methods inherited from class org.onosproject.net.pi.runtime.PiPreEntryHandleentityType
 
- 
 
- 
- 
- 
Method Detail- 
ofpublic static PiCloneSessionEntryHandle of(DeviceId deviceId, int sessionId) Creates a new handle for the given device ID and PI clone session ID.- Parameters:
- deviceId- device ID
- sessionId- clone session ID
- Returns:
- PI clone session entry handle
 
 - 
ofpublic static PiCloneSessionEntryHandle of(DeviceId deviceId, PiCloneSessionEntry entry) Creates a new handle for the given device ID and PI clone session entry.- Parameters:
- deviceId- device ID
- entry- PI clone session entry
- Returns:
- PI clone session entry handle
 
 - 
sessionIdpublic int sessionId() Returns the clone session ID associated with this handle.- Returns:
- session ID
 
 - 
preEntryTypepublic PiPreEntryType preEntryType() Description copied from class:PiPreEntryHandleReturns the type of PRE entry associated with this handle.- Specified by:
- preEntryTypein class- PiPreEntryHandle
- Returns:
- PRE entry type
 
 
- 
 
-