Package org.jolokia.client.jmxadapter
Class JolokiaJmxConnector
java.lang.Object
org.jolokia.client.jmxadapter.JolokiaJmxConnector
- All Implemented Interfaces:
Closeable,AutoCloseable,JMXConnector
Handle MBeanServerConnection using the jolokia protocol
-
Field Summary
FieldsFields inherited from interface javax.management.remote.JMXConnector
CREDENTIALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) voidclose()voidconnect()voidgetMBeanServerConnection(Subject delegationSubject) protected RemoteJmxAdapterinstantiateAdapter(org.jolokia.client.J4pClientBuilder clientBuilder, Map<String, Object> mergedEnv) mergedEnvironment(Map<String, ?> env) protected voidvoidvoid
-
Field Details
-
serviceUrl
-
adapter
-
-
Constructor Details
-
JolokiaJmxConnector
-
-
Method Details
-
connect
- Specified by:
connectin interfaceJMXConnector- Throws:
IOException
-
connect
- Specified by:
connectin interfaceJMXConnector- Throws:
IOException
-
postCreateAdapter
protected void postCreateAdapter() -
mergedEnvironment
-
instantiateAdapter
protected RemoteJmxAdapter instantiateAdapter(org.jolokia.client.J4pClientBuilder clientBuilder, Map<String, Object> mergedEnv) throws IOException- Throws:
IOException
-
getMBeanServerConnection
- Specified by:
getMBeanServerConnectionin interfaceJMXConnector
-
getMBeanServerConnection
- Specified by:
getMBeanServerConnectionin interfaceJMXConnector
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceJMXConnector
-
addConnectionNotificationListener
public void addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addConnectionNotificationListenerin interfaceJMXConnector
-
removeConnectionNotificationListener
public void removeConnectionNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeConnectionNotificationListenerin interfaceJMXConnector- Throws:
ListenerNotFoundException
-
removeConnectionNotificationListener
public void removeConnectionNotificationListener(NotificationListener l, NotificationFilter f, Object handback) throws ListenerNotFoundException - Specified by:
removeConnectionNotificationListenerin interfaceJMXConnector- Throws:
ListenerNotFoundException
-
getConnectionId
- Specified by:
getConnectionIdin interfaceJMXConnector
-