Package org.glowroot.agent.plugin.api
Class Agent
java.lang.Object
org.glowroot.agent.plugin.api.Agent
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigService
getConfigService
(String pluginId) Returns theConfigService
instance for the specifiedpluginId
.static TimerName
getTimerName
(Class<?> adviceClass) Returns theTimerName
instance for the specifiedadviceClass
.static TimerName
getTimerName
(String name)
-
Method Details
-
getTimerName
Returns theTimerName
instance for the specifiedadviceClass
.adviceClass
must be aClass
with aPointcut
annotation that has a non-emptyPointcut.timerName()
. This is how theTimerName
is named. The sameTimerName
is always returned for a givenadviceClass
. The return value can (and should) be cached by the plugin for the life of the jvm to avoid looking it up every time it is needed (which is often). -
getTimerName
-
getConfigService
Returns theConfigService
instance for the specifiedpluginId
. The return value can (and should) be cached by the plugin for the life of the jvm to avoid looking it up every time it is needed (which is often).
-