mx4j.tools.remote
public abstract class AbstractJMXConnector extends Object implements JMXConnector, Serializable
Version: $Revision: 1.8 $
Constructor Summary | |
---|---|
protected | AbstractJMXConnector(JMXServiceURL address)
Creates a new JMXConnector that will connect to the given JMXServiceURL |
Method Summary | |
---|---|
void | addConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) |
void | close() |
void | connect() |
void | connect(Map environment) |
protected ConnectionNotificationEmitter | createConnectionNotificationEmitter()
Creates a notification emitter used to emit connection notifications.
|
protected abstract void | doClose()
Template method to be implemented by subclasses to close this JMXConnector |
protected abstract void | doConnect(Map environment) |
protected abstract MBeanServerConnection | doGetMBeanServerConnection(Subject delegate)
Template method to be implemented by subclasses to return an MBeanServerConnection
for the given delegate subject.
|
protected JMXServiceURL | getAddress()
Returns the JMXServiceURL this JMXConnector will connect to. |
protected ConnectionNotificationEmitter | getConnectionNotificationEmitter() |
MBeanServerConnection | getMBeanServerConnection() |
MBeanServerConnection | getMBeanServerConnection(Subject delegate) |
protected boolean | isClosed()
Returns whether the AbstractJMXConnector method has been called. |
protected boolean | isConnected()
Returns whether the AbstractJMXConnector or connect method has been called on this JMXConnector. |
void | removeConnectionNotificationListener(NotificationListener listener) |
void | removeConnectionNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) |
protected void | sendConnectionNotificationClosed() |