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