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 java.lang.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(java.lang.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.java.util.Set<PiPreReplica>
replicas()
Returns the packet replicas provided by this multicast group.java.lang.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 java.util.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.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static PiMulticastGroupEntry.Builder builder()
Returns a new builder of multicast group entries.- Returns:
- builder
-
-