Package org.onosproject.net.pi.runtime
Class PiMulticastGroupEntryHandle
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiHandle
-
- org.onosproject.net.pi.runtime.PiPreEntryHandle
-
- org.onosproject.net.pi.runtime.PiMulticastGroupEntryHandle
-
@Beta public final class PiMulticastGroupEntryHandle extends PiPreEntryHandle
Global identifier of a PI multicast group entry applied to the packet replication engine of a device, uniquely defined by a device ID, and group ID.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
groupId()
Returns the multicast group ID associated with this handle.int
hashCode()
static PiMulticastGroupEntryHandle
of(DeviceId deviceId, int groupId)
Creates a new handle for the given device ID and PI multicast group ID.static PiMulticastGroupEntryHandle
of(DeviceId deviceId, PiMulticastGroupEntry entry)
Creates a new handle for the given device ID and PI multicast group entry.PiPreEntryType
preEntryType()
Returns the type of PRE entry associated with this handle.String
toString()
-
Methods inherited from class org.onosproject.net.pi.runtime.PiPreEntryHandle
entityType
-
-
-
-
Method Detail
-
of
public static PiMulticastGroupEntryHandle of(DeviceId deviceId, int groupId)
Creates a new handle for the given device ID and PI multicast group ID.- Parameters:
deviceId
- device IDgroupId
- multicast group ID- Returns:
- PI multicast group entry handle
-
of
public static PiMulticastGroupEntryHandle of(DeviceId deviceId, PiMulticastGroupEntry entry)
Creates a new handle for the given device ID and PI multicast group entry.- Parameters:
deviceId
- device IDentry
- PI multicast group entry- Returns:
- PI multicast group entry handle
-
groupId
public int groupId()
Returns the multicast group ID associated with this handle.- Returns:
- group 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
-
-