public interface ServerDetector
ServerHandle
containing type, version
and some optional information. For the early detection of a server by the JVM agent,
jvmAgentStartup(Instrumentation)
and #awaitServerInitialization
can
be used. Using these methods is useful in case the server is using its own class
loaders to load components used by Jolokia (e.g jmx, Java logging which is
indirectly required by the sun.net.httpserver).Modifier and Type | Method and Description |
---|---|
void |
addMBeanServers(Set<MBeanServerConnection> pMBeanServers)
Add server specific MBeanServers
|
ServerHandle |
detect(MBeanServerExecutor pMBeanServerExecutor)
Detect the server.
|
void |
jvmAgentStartup(Instrumentation instrumentation)
Notify detector that the JVM is about to start.
|
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.void addMBeanServers(Set<MBeanServerConnection> pMBeanServers)
pMBeanServers
- set to add detected MBeanServers tovoid jvmAgentStartup(Instrumentation instrumentation)
instrumentation
- the Instrumentation implementationCopyright © 2021. All rights reserved.