Class RouteHttpRequestStats


  • public class RouteHttpRequestStats
    extends java.lang.Object
    This class stores the stats for combined all type(SINGLE/MULTI/COMPUTE etc) of Router requests to the HttpAsync client compared to RouteHttpStats which stores only per type stats.
    • Constructor Detail

      • RouteHttpRequestStats

        public RouteHttpRequestStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                     StorageNodeClient storageNodeClient)
    • Method Detail

      • recordPendingRequest

        public void recordPendingRequest​(java.lang.String hostName)
      • recordFinishedRequest

        public void recordFinishedRequest​(java.lang.String hostName)
      • recordUnhealthyQueueDuration

        public void recordUnhealthyQueueDuration​(java.lang.String hostName,
                                                 double duration)
      • getPendingRequestCount

        public long getPendingRequestCount​(java.lang.String hostName)