Class Agent

java.lang.Object
org.glowroot.agent.plugin.api.Agent

public class Agent extends Object
  • Method Details

    • getTimerName

      public static TimerName getTimerName(Class<?> adviceClass)
      Returns the 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).
    • getTimerName

      public static TimerName getTimerName(String name)
    • getConfigService

      public static ConfigService getConfigService(String pluginId)
      Returns the 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).