Class UpfCounter

  • All Implemented Interfaces:
    UpfEntity

    @Beta
    public final class UpfCounter
    extends Object
    implements UpfEntity
    A structure for compactly passing UPF counter values for a given counter ID. Contains four counts: Ingress Packets, Ingress Bytes, Egress Packets, Egress Bytes. UpfCounter can be used ONLY on apply and readAll calls in the UpfDevice interface.
    • Method Detail

      • getCellId

        public int getCellId()
        Get the cell ID (index) of the dataplane 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
      • type

        public UpfEntityType type()
        Description copied from interface: UpfEntity
        Returns the type of this entity.
        Specified by:
        type in interface UpfEntity
        Returns:
        entity type