Class PdrStats.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.PdrStats.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdrStats
build()
PdrStats.Builder
setEgress(long egressPkts, long egressBytes)
Set the number of packets and bytes that hit the PDR counter in the dataplane egress pipeline.PdrStats.Builder
setIngress(long ingressPkts, long ingressBytes)
Set the number of packets and bytes that hit the PDR counter in the dataplane ingress pipeline.PdrStats.Builder
withCellId(int cellId)
Set the Cell ID (index) of the datalane PDR counter that produced this set of stats.
-
-
-
Method Detail
-
withCellId
public PdrStats.Builder withCellId(int cellId)
Set the Cell ID (index) of the datalane PDR counter that produced this set of stats.- Parameters:
cellId
- the counter cell ID- Returns:
- This builder
-
setIngress
public PdrStats.Builder setIngress(long ingressPkts, long ingressBytes)
Set the number of packets and bytes that hit the PDR counter in the dataplane ingress pipeline.- Parameters:
ingressPkts
- ingress packet countingressBytes
- egress packet count- Returns:
- This builder
-
setEgress
public PdrStats.Builder setEgress(long egressPkts, long egressBytes)
Set the number of packets and bytes that hit the PDR counter in the dataplane egress pipeline.- Parameters:
egressPkts
- egress packet countegressBytes
- egress byte count- Returns:
- This builder
-
build
public PdrStats build()
-
-