Interface MetricsService

All Known Implementing Classes:
MetricsServiceImpl

public interface MetricsService
This is the main interface for the metrics service, that makes it possible to count calls, callers and accumulated times for sections of code.
  • Method Details

    • setActivated

      void setActivated(boolean activated)
      Enables or disables the metrics service.
      Parameters:
      activated - if true the metrics service will be activated, false will deactivate it and clear any exists in-memory metrics
    • isActivated

      boolean isActivated()
    • getCallersStatus

      Map<String,Boolean> getCallersStatus()
    • setCallerActivated

      void setCallerActivated(String timerName, boolean activated)
    • isCallerActivated

      boolean isCallerActivated(String timerName)
    • getMetrics

      Map<String,Metric> getMetrics()
    • resetMetrics

      void resetMetrics()
    • updateTimer

      void updateTimer(String timerName, long startTime)