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 voidaddDataPlaneEntity(DataPlaneEntity dataPlaneEntity)Adds the provided dataplane entity to the end of the chain.voiddropped()Set the dropped flag.static PipelineTraceableHitChainemptyHitChain()Creates an empty pipeline hit chain.booleanequals(Object obj)TrafficSelectorgetEgressPacket()Returns the egress packet after traversing the pipeline.List<DataPlaneEntity>getHitChain()Returns the hit chain.ConnectPointgetOutputPort()Returns the output connect point.inthashCode()booleanisDropped()Return whether or not the packet has been dropped by the pipeline.voidpass()Unset the dropped flag.voidremoveDataPlaneEntity(DataPlaneEntity dataPlaneEntity)Removes the provided dataplane entity from the chain.voidsetEgressPacket(TrafficSelector egressPacket)Sets the egress packet.voidsetOutputPort(ConnectPoint outputPort)Sets the output port.StringtoString()
-
-
-
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.
-
-