Class FederationStateStoreServiceMetrics

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.federation.FederationStateStoreServiceMetrics

@Metrics(about="Metrics for FederationStateStoreService", context="fedr") public final class FederationStateStoreServiceMetrics extends Object
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Method Details

    • getMetrics

      public static FederationStateStoreServiceMetrics getMetrics()
      Initialize the singleton instance.
      Returns:
      the singleton
    • failedStateStoreServiceCall

      public static void failedStateStoreServiceCall()
    • failedStateStoreServiceCall

      public static void failedStateStoreServiceCall(String methodName)
    • succeededStateStoreServiceCall

      public static void succeededStateStoreServiceCall(long duration)
    • succeededStateStoreServiceCall

      public static void succeededStateStoreServiceCall(String methodName, long duration)
    • getNumFailedCallsForMethod

      @VisibleForTesting public static long getNumFailedCallsForMethod(String methodName)
    • getNumSucceessfulCallsForMethod

      @VisibleForTesting public static long getNumSucceessfulCallsForMethod(String methodName)
    • getLatencySucceessfulCallsForMethod

      @VisibleForTesting public static double getLatencySucceessfulCallsForMethod(String methodName)
    • getNumFailedCalls

      @VisibleForTesting public static long getNumFailedCalls()
    • getNumSucceededCalls

      @VisibleForTesting public static long getNumSucceededCalls()
    • getLatencySucceededCalls

      @VisibleForTesting public static double getLatencySucceededCalls()