public class Agent extends Object
| Modifier and Type | Method and Description |
|---|---|
static ConfigService |
getConfigService(String pluginId)
Returns the
ConfigService instance for the specified pluginId. |
static Logger |
getLogger(Class<?> clazz) |
static TimerName |
getTimerName(Class<?> adviceClass)
Returns the
TimerName instance for the specified adviceClass. |
static TimerName |
getTimerName(String name) |
public static ConfigService getConfigService(String pluginId)
ConfigService instance for the specified pluginId.
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).public static TimerName getTimerName(Class<?> adviceClass)
TimerName instance for the specified adviceClass.
adviceClass must be a Class with a Pointcut annotation that has a
non-empty Pointcut.timerName(). This is how the TimerName is named.
The same TimerName is always returned for a given adviceClass.
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).Copyright © 2011–2017 Glowroot contributors. All rights reserved.