mx4j.tools.remote
Class AbstractJMXConnectorServer
public abstract
class
AbstractJMXConnectorServer
extends JMXConnectorServer
Extends the implementation of JMXConnectorServer by implementing most
JMXConnectorServer methods following the JSR 160 specification and delegating
implementation specific operations using the template method pattern.
Version: $Revision: 1.8 $
See Also: ConnectionManager
Method Summary |
void | connectionClosed(String connectionId, String message, Object userData) |
void | connectionFailed(String connectionId, String message, Object userData) |
void | connectionOpened(String connectionId, String message, Object userData) |
protected abstract void | doStart()
Template method implemented by subclasses to start this JMXConnectorServer |
protected abstract void | doStop()
Template method implemented by subclasses to stop this JMXConnectorServer |
JMXServiceURL | getAddress() |
Map | getAttributes() |
protected Map | getEnvironment()
Returns the environment Map as is, without removing non-serializable entries like {@link #getAttributes} does. |
protected Logger | getLogger() |
boolean | isActive() |
protected boolean | isStopped()
Returns whether the {@link #stop} method of this JMXConnectorServer has been called. |
protected void | setAddress(JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer |
void | start() |
void | stop() |
public AbstractJMXConnectorServer(JMXServiceURL url, Map environment, MBeanServer server)
public void connectionClosed(String connectionId, String message, Object userData)
public void connectionFailed(String connectionId, String message, Object userData)
public void connectionOpened(String connectionId, String message, Object userData)
protected abstract void doStart()
Template method implemented by subclasses to start this JMXConnectorServer
protected abstract void doStop()
Template method implemented by subclasses to stop this JMXConnectorServer
public JMXServiceURL getAddress()
public Map getAttributes()
protected Map getEnvironment()
Returns the environment Map as is, without removing non-serializable entries like {@link #getAttributes} does.
public boolean isActive()
protected boolean isStopped()
Returns whether the {@link #stop} method of this JMXConnectorServer has been called.
protected void setAddress(JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer
public void start()
public void stop()
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.