Class PdrStats
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.PdrStats
-
public final class PdrStats extends Object
A structure for compactly passing PDR counter values for a given counter ID. Contains four counts: Ingress Packets, Ingress Bytes, Egress Packets, Egress Bytes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PdrStats.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PdrStats.Builder
builder()
int
getCellId()
Get the cell ID (index) of the dataplane PDR counter that produced this set of stats.long
getEgressBytes()
Get the number of packet bytes that hit this counter in the dataplane egress pipeline.long
getEgressPkts()
Get the number of packets that hit this counter in the dataplane egress pipeline.long
getIngressBytes()
Get the number of packet bytes that hit this counter in the dataplane ingress pipeline.long
getIngressPkts()
Get the number of packets that hit this counter in the dataplane ingress pipeline.String
toString()
-
-
-
Method Detail
-
builder
public static PdrStats.Builder builder()
-
getCellId
public int getCellId()
Get the cell ID (index) of the dataplane PDR counter that produced this set of stats.- Returns:
- counter cell ID
-
getIngressPkts
public long getIngressPkts()
Get the number of packets that hit this counter in the dataplane ingress pipeline.- Returns:
- ingress packet count
-
getEgressPkts
public long getEgressPkts()
Get the number of packets that hit this counter in the dataplane egress pipeline.- Returns:
- egress packet count
-
getIngressBytes
public long getIngressBytes()
Get the number of packet bytes that hit this counter in the dataplane ingress pipeline.- Returns:
- ingress byte count
-
getEgressBytes
public long getEgressBytes()
Get the number of packet bytes that hit this counter in the dataplane egress pipeline.- Returns:
- egress byte count
-
-