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.
    • Constructor Summary

      Constructors 
      Constructor Description
      ComputedNodeStats​(java.lang.String nodeId, int clientNum, int queueSize, double responseTime, double serviceTime)  
    • Method Summary

      Modifier and Type Method Description
      double rank​(long outstandingRequests)  
      java.lang.String toString()  
      void writeTo​(StreamOutput out)
      Write this into the StreamOutput.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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