Package org.onosproject.net.pi.runtime
Class PiPreReplica
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiPreReplica
-
@Beta public final class PiPreReplica extends java.lang.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 PortNumber
egressPort()
Returns the egress port of this replica.boolean
equals(java.lang.Object obj)
int
hashCode()
int
instanceId()
Returns the instance ID of this replica.java.lang.String
toString()
-
-
-
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
-
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
-
-