Class FastClientStats


public class FastClientStats extends ClientStats
  • Method Details

    • getClientStats

      public static FastClientStats getClientStats(io.tehuti.metrics.MetricsRepository metricsRepository, String statsPrefix, String storeName, RequestType requestType)
    • recordNoAvailableReplicaRequest

      public void recordNoAvailableReplicaRequest()
    • recordFastClientSlowerRequest

      public void recordFastClientSlowerRequest()
    • recordFastClientErrorThinClientSucceedRequest

      public void recordFastClientErrorThinClientSucceedRequest()
    • recordThinClientFastClientLatencyDelta

      public void recordThinClientFastClientLatencyDelta(double latencyDelta)
    • recordLongTailRetryRequest

      public void recordLongTailRetryRequest()
    • recordErrorRetryRequest

      public void recordErrorRetryRequest()
    • recordRetryRequestWin

      public void recordRetryRequestWin()
    • updateCacheTimestamp

      public void updateCacheTimestamp(long cacheTimeStampInMs)
    • recordFanoutSize

      public void recordFanoutSize(int fanoutSize)
    • recordRetryFanoutSize

      public void recordRetryFanoutSize(int retryFanoutSize)
    • buildSensorStatSummary

      public String buildSensorStatSummary(String sensorName, String... stats)
      This method is a utility method to build concise summaries useful in tests and for logging. It generates a single string for all metrics for a sensor
      Parameters:
      sensorName -
      Returns:
    • getMetricValues

      public List<Double> getMetricValues(String sensorName, String... stats)
      This method is a utility method to get metric values useful in tests and for logging.
      Parameters:
      sensorName -
      Returns: