Class PdrStats.Builder

  • Enclosing class:
    PdrStats

    public static class PdrStats.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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 count
        ingressBytes - 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 count
        egressBytes - egress byte count
        Returns:
        This builder