Package org.onosproject.net
Class PipelineTraceableHitChain
- java.lang.Object
-
- org.onosproject.net.PipelineTraceableHitChain
-
public class PipelineTraceableHitChain extends Object
Class to represent the pipeline hit chain and the result of the pipeline processing.
-
-
Constructor Summary
Constructors Constructor Description PipelineTraceableHitChain(ConnectPoint output, List<DataPlaneEntity> hits, TrafficSelector packet)
Creates a new PipelineTraceableHitChain.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataPlaneEntity(DataPlaneEntity dataPlaneEntity)
Adds the provided dataplane entity to the end of the chain.void
dropped()
Set the dropped flag.static PipelineTraceableHitChain
emptyHitChain()
Creates an empty pipeline hit chain.boolean
equals(Object obj)
TrafficSelector
getEgressPacket()
Returns the egress packet after traversing the pipeline.List<DataPlaneEntity>
getHitChain()
Returns the hit chain.ConnectPoint
getOutputPort()
Returns the output connect point.int
hashCode()
boolean
isDropped()
Return whether or not the packet has been dropped by the pipeline.void
pass()
Unset the dropped flag.void
removeDataPlaneEntity(DataPlaneEntity dataPlaneEntity)
Removes the provided dataplane entity from the chain.void
setEgressPacket(TrafficSelector egressPacket)
Sets the egress packet.void
setOutputPort(ConnectPoint outputPort)
Sets the output port.String
toString()
-
-
-
Constructor Detail
-
PipelineTraceableHitChain
public PipelineTraceableHitChain(ConnectPoint output, List<DataPlaneEntity> hits, TrafficSelector packet)
Creates a new PipelineTraceableHitChain.- Parameters:
output
- the output connect pointhits
- the hits in the pipeline (flows, groups and other abstractions)packet
- the selector representing the final packet
-
-
Method Detail
-
emptyHitChain
public static PipelineTraceableHitChain emptyHitChain()
Creates an empty pipeline hit chain.- Returns:
- an empty pipeline hit chain
-
getOutputPort
public ConnectPoint getOutputPort()
Returns the output connect point.- Returns:
- the connect point
-
setOutputPort
public void setOutputPort(ConnectPoint outputPort)
Sets the output port.- Parameters:
outputPort
- the output port
-
getHitChain
public List<DataPlaneEntity> getHitChain()
Returns the hit chain.- Returns:
- flows and groups that matched.
-
addDataPlaneEntity
public void addDataPlaneEntity(DataPlaneEntity dataPlaneEntity)
Adds the provided dataplane entity to the end of the chain.- Parameters:
dataPlaneEntity
- the dataplane entity
-
removeDataPlaneEntity
public void removeDataPlaneEntity(DataPlaneEntity dataPlaneEntity)
Removes the provided dataplane entity from the chain.- Parameters:
dataPlaneEntity
- the dataplane entity
-
getEgressPacket
public TrafficSelector getEgressPacket()
Returns the egress packet after traversing the pipeline.- Returns:
- the selector representing the packet infos
-
setEgressPacket
public void setEgressPacket(TrafficSelector egressPacket)
Sets the egress packet.- Parameters:
egressPacket
- the egress packet
-
isDropped
public boolean isDropped()
Return whether or not the packet has been dropped by the pipeline.- Returns:
- true if the packet has been dropped. False, otherwise.
-
dropped
public void dropped()
Set the dropped flag.
-
pass
public void pass()
Unset the dropped flag.
-
-