Package org.glowroot.agent.plugin.api
Class Agent
java.lang.Object
org.glowroot.agent.plugin.api.Agent
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigServicegetConfigService(String pluginId) Returns theConfigServiceinstance for the specifiedpluginId.static TimerNamegetTimerName(Class<?> adviceClass) Returns theTimerNameinstance for the specifiedadviceClass.static TimerNamegetTimerName(String name)
-
Method Details
-
getTimerName
Returns theTimerNameinstance for the specifiedadviceClass.adviceClassmust be aClasswith aPointcutannotation that has a non-emptyPointcut.timerName(). This is how theTimerNameis named. The sameTimerNameis 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 theConfigServiceinstance 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).
-