public interface MetricsService
Modifier and Type | Method and Description |
---|---|
Map<String,Boolean> |
getCallersStatus() |
Map<String,Metric> |
getMetrics() |
boolean |
isActivated() |
boolean |
isCallerActivated(String timerName) |
void |
resetMetrics() |
void |
setActivated(boolean activated)
Enables or disables the metrics service.
|
void |
setCallerActivated(String timerName,
boolean activated) |
void |
updateTimer(String timerName,
long startTime) |
void setActivated(boolean activated)
activated
- if true the metrics service will be activated, false will deactivate it and clear any exists
in-memory metricsboolean isActivated()
void setCallerActivated(String timerName, boolean activated)
boolean isCallerActivated(String timerName)
void resetMetrics()
void updateTimer(String timerName, long startTime)
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.