Package org.onosproject.net.pi.runtime
Class PiPreReplica
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiPreReplica
-
@Beta public final class PiPreReplica extends Object
Representation of a packet replica used for multicast or cloning process in a protocol-independent packet replication engine.Each replica is uniquely identified inside a given multicast group or clone session by the pair (egress port, instance ID).
-
-
Constructor Summary
Constructors Constructor Description PiPreReplica(PortNumber egressPort, int instanceId)Returns a new PRE packet replica for the given egress port and instance ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortNumberegressPort()Returns the egress port of this replica.booleanequals(Object obj)inthashCode()intinstanceId()Returns the instance ID of this replica.StringtoString()
-
-
-
Constructor Detail
-
PiPreReplica
public PiPreReplica(PortNumber egressPort, int instanceId)
Returns a new PRE packet replica for the given egress port and instance ID.- Parameters:
egressPort- egress portinstanceId- instance ID
-
-
Method Detail
-
egressPort
public PortNumber egressPort()
Returns the egress port of this replica.- Returns:
- egress port
-
instanceId
public int instanceId()
Returns the instance ID of this replica.- Returns:
- instance ID
-
-