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

Constructor Summary
AbstractJMXConnectorServer(JMXServiceURL url, Map environment, MBeanServer server)
Method Summary
voidconnectionClosed(String connectionId, String message, Object userData)
voidconnectionFailed(String connectionId, String message, Object userData)
voidconnectionOpened(String connectionId, String message, Object userData)
protected abstract voiddoStart()
Template method implemented by subclasses to start this JMXConnectorServer
protected abstract voiddoStop()
Template method implemented by subclasses to stop this JMXConnectorServer
JMXServiceURLgetAddress()
MapgetAttributes()
protected MapgetEnvironment()
Returns the environment Map as is, without removing non-serializable entries like AbstractJMXConnectorServer does.
protected LoggergetLogger()
booleanisActive()
protected booleanisStopped()
Returns whether the AbstractJMXConnectorServer method of this JMXConnectorServer has been called.
protected voidsetAddress(JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer
voidstart()
voidstop()

Constructor Detail

AbstractJMXConnectorServer

public AbstractJMXConnectorServer(JMXServiceURL url, Map environment, MBeanServer server)

Method Detail

connectionClosed

public void connectionClosed(String connectionId, String message, Object userData)

connectionFailed

public void connectionFailed(String connectionId, String message, Object userData)

connectionOpened

public void connectionOpened(String connectionId, String message, Object userData)

doStart

protected abstract void doStart()
Template method implemented by subclasses to start this JMXConnectorServer

doStop

protected abstract void doStop()
Template method implemented by subclasses to stop this JMXConnectorServer

getAddress

public JMXServiceURL getAddress()

getAttributes

public Map getAttributes()

getEnvironment

protected Map getEnvironment()
Returns the environment Map as is, without removing non-serializable entries like AbstractJMXConnectorServer does.

getLogger

protected Logger getLogger()

isActive

public boolean isActive()

isStopped

protected boolean isStopped()
Returns whether the AbstractJMXConnectorServer method of this JMXConnectorServer has been called.

setAddress

protected void setAddress(JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer

start

public void start()

stop

public void stop()
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.