Class FastClientStats

    • Method Detail

      • getClientStats

        public static FastClientStats getClientStats​(io.tehuti.metrics.MetricsRepository metricsRepository,
                                                     java.lang.String statsPrefix,
                                                     java.lang.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 java.lang.String buildSensorStatSummary​(java.lang.String sensorName,
                                                       java.lang.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 java.util.List<java.lang.Double> getMetricValues​(java.lang.String sensorName,
                                                                java.lang.String... stats)
        This method is a utility method to get metric values useful in tests and for logging.
        Parameters:
        sensorName -
        Returns: