Package org.onosproject.net
Class PipelineTraceablePacket
- java.lang.Object
-
- org.onosproject.net.PipelineTraceablePacket
-
public final class PipelineTraceablePacket extends Object
Represents a traceable packet composed by a traffic selector and metadata.
-
-
Constructor Summary
Constructors Constructor Description PipelineTraceablePacket(TrafficSelector packet)
Builds a traceable packet without metadata.PipelineTraceablePacket(TrafficSelector packet, PipelineTraceableMetadata metadata)
Builds a traceable packet with metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
PipelineTraceableMetadata
metadata()
Getter for the metadata.TrafficSelector
packet()
Getter for the packet selector.String
toString()
-
-
-
Constructor Detail
-
PipelineTraceablePacket
public PipelineTraceablePacket(TrafficSelector packet)
Builds a traceable packet without metadata. Note this can be used for legacy device like ofdpa.- Parameters:
packet
- the packet selector
-
PipelineTraceablePacket
public PipelineTraceablePacket(TrafficSelector packet, PipelineTraceableMetadata metadata)
Builds a traceable packet with metadata.- Parameters:
packet
- the packet selectormetadata
- the packet metadata
-
-
Method Detail
-
metadata
public PipelineTraceableMetadata metadata()
Getter for the metadata.- Returns:
- the packet metadata
-
packet
public TrafficSelector packet()
Getter for the packet selector.- Returns:
- the packet selector
-
-