Class MetricsServiceImpl
java.lang.Object
org.apache.unomi.metrics.internal.MetricsServiceImpl
- All Implemented Interfaces:
MetricsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisCallerActivated(String timerName) voidvoidsetActivated(boolean activated) Enables or disables the metrics service.voidsetCallerActivated(String timerName, boolean activated) voidupdateTimer(String timerName, long startTime)
-
Constructor Details
-
MetricsServiceImpl
public MetricsServiceImpl()
-
-
Method Details
-
setActivated
public void setActivated(boolean activated) Description copied from interface:MetricsServiceEnables or disables the metrics service.- Specified by:
setActivatedin interfaceMetricsService- Parameters:
activated- if true the metrics service will be activated, false will deactivate it and clear any exists in-memory metrics
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin interfaceMetricsService
-
getMetrics
- Specified by:
getMetricsin interfaceMetricsService
-
resetMetrics
public void resetMetrics()- Specified by:
resetMetricsin interfaceMetricsService
-
updateTimer
- Specified by:
updateTimerin interfaceMetricsService
-
getCallersStatus
- Specified by:
getCallersStatusin interfaceMetricsService
-
setCallerActivated
- Specified by:
setCallerActivatedin interfaceMetricsService
-
isCallerActivated
- Specified by:
isCallerActivatedin interfaceMetricsService
-