Class JBossDetector
- java.lang.Object
-
- com.heroku.agent.metrics.detector.AbstractServerDetector
-
- com.heroku.agent.metrics.detector.JBossDetector
-
- All Implemented Interfaces:
ServerDetector
public class JBossDetector extends AbstractServerDetector
-
-
Constructor Summary
Constructors Constructor Description JBossDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandetect()By default, do nothingvoidjvmAgentStartup(Instrumentation instrumentation)Attempts to detect a JBoss modules based application server.protected voidjvmAgentStartup(Instrumentation instrumentation, ClassLoader classLoader)
-
-
-
Method Detail
-
detect
public boolean detect()
Description copied from class:AbstractServerDetectorBy default, do nothing- Specified by:
detectin interfaceServerDetector- Overrides:
detectin classAbstractServerDetector
-
jvmAgentStartup
public void jvmAgentStartup(Instrumentation instrumentation)
Attempts to detect a JBoss modules based application server. Because getting access to the main arguments is not possible, it returns true in case the system propertyjboss.modules.system.pkgsis set and theorg/jboss/modules/Main.classresource can be found using the class loader of this class.If so, it awaits the early initialization of a JBoss modules based application server by polling the system property
java.util.logging.managerand waiting until the specified class specified by this property has been loaded by the JVM.- Specified by:
jvmAgentStartupin interfaceServerDetector- Overrides:
jvmAgentStartupin classAbstractServerDetector- Parameters:
instrumentation- the Instrumentation implementation
-
jvmAgentStartup
protected void jvmAgentStartup(Instrumentation instrumentation, ClassLoader classLoader)
-
-