Package org.onosproject.net.pi.runtime
Class PiMulticastGroupEntry
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMulticastGroupEntry
-
- All Implemented Interfaces:
PiEntity
,PiPreEntry
@Beta public final class PiMulticastGroupEntry extends Object implements PiPreEntry
Representation of multicast group entry of a protocol-independent packet replication engine (PRE).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PiMulticastGroupEntry.Builder
Builder of PI multicast group entries.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiMulticastGroupEntry.Builder
builder()
Returns a new builder of multicast group entries.boolean
equals(Object obj)
int
groupId()
Returns the identifier of this multicast group, unique in the scope of a PRE instance.PiMulticastGroupEntryHandle
handle(DeviceId deviceId)
Returns a handle for this PI entity and the given device ID.int
hashCode()
PiEntityType
piEntityType()
Returns the type of this entity.PiPreEntryType
preEntryType()
Returns the type of this PRE entry.Set<PiPreReplica>
replicas()
Returns the packet replicas provided by this multicast group.String
toString()
-
-
-
Method Detail
-
groupId
public int groupId()
Returns the identifier of this multicast group, unique in the scope of a PRE instance.- Returns:
- group entry ID
-
replicas
public Set<PiPreReplica> replicas()
Returns the packet replicas provided by this multicast group.- Returns:
- packet replicas
-
preEntryType
public PiPreEntryType preEntryType()
Description copied from interface:PiPreEntry
Returns the type of this PRE entry.- Specified by:
preEntryType
in interfacePiPreEntry
- Returns:
- PRE entry type
-
piEntityType
public PiEntityType piEntityType()
Description copied from interface:PiEntity
Returns the type of this entity.- Specified by:
piEntityType
in interfacePiEntity
- Returns:
- entity type
-
handle
public PiMulticastGroupEntryHandle handle(DeviceId deviceId)
Description copied from interface:PiEntity
Returns a handle for this PI entity and the given device ID.
-
builder
public static PiMulticastGroupEntry.Builder builder()
Returns a new builder of multicast group entries.- Returns:
- builder
-
-