Class ClientStats

Direct Known Subclasses:
FastClientStats

public class ClientStats extends BasicClientStats
  • Constructor Details

    • ClientStats

      protected ClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType)
  • Method Details

    • getClientStats

      public static ClientStats getClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, String storeName, RequestType requestType, ClientConfig clientConfig)
    • recordHttpRequest

      public void recordHttpRequest(int httpStatus)
    • recordUnhealthyLatency

      public void recordUnhealthyLatency(double latency)
    • recordRequestRetryCount

      public void recordRequestRetryCount()
    • recordSuccessDuplicateRequestKeyCount

      public void recordSuccessDuplicateRequestKeyCount(int duplicateKeyCount)
    • recordRequestSerializationTime

      public void recordRequestSerializationTime(double latency)
    • recordRequestSubmissionToResponseHandlingTime

      public void recordRequestSubmissionToResponseHandlingTime(double latency)
    • recordResponseDeserializationTime

      public void recordResponseDeserializationTime(double latency)
    • recordResponseDecompressionTime

      public void recordResponseDecompressionTime(double latency)
    • recordStreamingResponseTimeToReceiveFirstRecord

      public void recordStreamingResponseTimeToReceiveFirstRecord(double latency)
    • recordStreamingResponseTimeToReceive50PctRecord

      public void recordStreamingResponseTimeToReceive50PctRecord(double latency)
    • recordStreamingResponseTimeToReceive90PctRecord

      public void recordStreamingResponseTimeToReceive90PctRecord(double latency)
    • recordStreamingResponseTimeToReceive95PctRecord

      public void recordStreamingResponseTimeToReceive95PctRecord(double latency)
    • recordStreamingResponseTimeToReceive99PctRecord

      public void recordStreamingResponseTimeToReceive99PctRecord(double latency)
    • recordAppTimedOutRequest

      public void recordAppTimedOutRequest()
    • recordAppTimedOutRequestResultRatio

      public void recordAppTimedOutRequestResultRatio(double ratio)
    • recordClientFutureTimeout

      public void recordClientFutureTimeout(long clientFutureTimeout)
    • recordRetryRequestKeyCount

      public void recordRetryRequestKeyCount(int numberOfKeysSentInRetryRequest)
    • recordRetryRequestSuccessKeyCount

      public void recordRetryRequestSuccessKeyCount(int numberOfKeysCompletedInRetryRequest)
    • recordMultiGetFallback

      public void recordMultiGetFallback(int keyCount)