public class JBossDetector extends AbstractServerDetector
| Modifier and Type | Field and Description |
|---|---|
static String |
JBOSS_AS_MANAGEMENT_ROOT_SERVER |
static int |
LOGGING_DETECT_INTERVAL |
static int |
LOGGING_DETECT_TIMEOUT |
| Constructor and Description |
|---|
JBossDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMBeanServers(Set<MBeanServerConnection> servers)
Do nothing by default, leaving the implementation
optional for each specific detector
|
ServerHandle |
detect(MBeanServerExecutor pMBeanServerExecutor)
Detect the server.
|
protected boolean |
isJBossModulesBasedContainer(ClassLoader classLoader) |
void |
jvmAgentStartup(Instrumentation instrumentation)
Attempts to detect a JBoss modules based application server.
|
getAttributeValue, getAttributeValue, getSingleStringAttribute, getVersionFromJsr77, isClassLoaded, mBeanExists, searchMBeanspublic static final String JBOSS_AS_MANAGEMENT_ROOT_SERVER
public static final int LOGGING_DETECT_TIMEOUT
public static final int LOGGING_DETECT_INTERVAL
public ServerHandle detect(MBeanServerExecutor pMBeanServerExecutor)
ServerHandle descriptor is returned
in case of a successful detection, null otherwise.pMBeanServerExecutor - a set of MBeanServers which can be used for detecting server informationsnull it this implementation cant detect 'its' server.public void jvmAgentStartup(Instrumentation instrumentation)
jboss.modules.system.pkgs is set and the org/jboss/modules/Main.class resource 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.manager and waiting until the specified class specified by this property has been
loaded by the JVM.jvmAgentStartup in interface ServerDetectorjvmAgentStartup in class AbstractServerDetectorinstrumentation - the Instrumentation implementationprotected boolean isJBossModulesBasedContainer(ClassLoader classLoader)
public void addMBeanServers(Set<MBeanServerConnection> servers)
AbstractServerDetectoraddMBeanServers in interface ServerDetectoraddMBeanServers in class AbstractServerDetectorservers - servers to addCopyright © 2017. All rights reserved.