Class ResponseCollectorService.ComputedNodeStats

  • All Implemented Interfaces:
    Writeable
    Enclosing class:
    ResponseCollectorService

    public static class ResponseCollectorService.ComputedNodeStats
    extends java.lang.Object
    implements Writeable
    Struct-like class encapsulating a point-in-time snapshot of a particular node's statistics. This includes the EWMA of queue size, response time, and service time.
    • Field Detail

      • nodeId

        public final java.lang.String nodeId
      • queueSize

        public final int queueSize
      • responseTime

        public final double responseTime
      • serviceTime

        public final double serviceTime
    • Constructor Detail

      • ComputedNodeStats

        public ComputedNodeStats​(java.lang.String nodeId,
                                 int clientNum,
                                 int queueSize,
                                 double responseTime,
                                 double serviceTime)
    • Method Detail

      • rank

        public double rank​(long outstandingRequests)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object