public class JmsJmxConnectorServer
extends javax.management.remote.JMXConnectorServer
JMXConnectorServer
that provides JMX connectivity via JMS.
As this implementation uses a JMS Provider to provide connectivity, clients aren't directly connected to this server; requests
automagically appear on the given Destination
that this is registered against. As a result, you will find that
the standard JMXConnectorServer.getConnectionIds()
may return you an empty array as the corresponding
JMXConnectorServer.connectionClosed(String, String, Object)
, JMXConnectorServer.connectionOpened(String, String, Object)
,
JMXConnectorServer.connectionFailed(String, String, Object)
methods are never called.
Constructor and Description |
---|
JmsJmxConnectorServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment,
javax.management.MBeanServer server,
JmsJmxConnectionFactory factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
javax.management.remote.JMXServiceURL |
getAddress() |
java.util.Map |
getAttributes() |
boolean |
isActive() |
void |
removeNotificationListener(javax.management.NotificationListener listener) |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
void |
sendNotification(javax.management.Notification notification) |
void |
start() |
void |
stop() |
javax.management.remote.JMXConnector |
toJMXConnector(java.util.Map<java.lang.String,?> env) |
public JmsJmxConnectorServer(javax.management.remote.JMXServiceURL url, java.util.Map environment, javax.management.MBeanServer server, JmsJmxConnectionFactory factory) throws java.io.IOException
url
- the JMXServiceURL.environment
- the initial environment for getAttributes()
server
- the MBeanServer
that we should be attached to.factory
- the JmsJmxConnectionFactory
that will used to connection to the JMS Provider.java.io.IOException
- wrapping any other exception.public void start() throws java.io.IOException
java.io.IOException
public void stop() throws java.io.IOException
java.io.IOException
public javax.management.remote.JMXConnector toJMXConnector(java.util.Map<java.lang.String,?> env) throws java.io.IOException
Note that this will throw an UnsupportedOperationException
toJMXConnector
in interface javax.management.remote.JMXConnectorServerMBean
toJMXConnector
in class javax.management.remote.JMXConnectorServer
java.io.IOException
public boolean isActive()
public javax.management.remote.JMXServiceURL getAddress()
public java.util.Map getAttributes()
public void sendNotification(javax.management.Notification notification)
sendNotification
in class javax.management.NotificationBroadcasterSupport
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
addNotificationListener
in class javax.management.NotificationBroadcasterSupport
java.lang.IllegalArgumentException
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
removeNotificationListener
in class javax.management.NotificationBroadcasterSupport
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
removeNotificationListener
in class javax.management.NotificationBroadcasterSupport
javax.management.ListenerNotFoundException