mx4j.tools.remote

Class AbstractJMXConnectorServer

Implemented Interfaces:
javax.management.remote.JMXConnectorServerMBean, javax.management.MBeanRegistration, javax.management.NotificationEmitter
Known Direct Subclasses:
HTTPConnectorServer, LocalConnectorServer

public abstract class AbstractJMXConnectorServer
extends javax.management.remote.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

Field Summary

Fields inherited from class javax.management.remote.JMXConnectorServer

AUTHENTICATOR

Constructor Summary

AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url, Map environment, javax.management.MBeanServer server)

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
javax.management.remote.JMXServiceURL
getAddress()
Map
getAttributes()
protected Map
getEnvironment()
Returns the environment Map as is, without removing non-serializable entries like getAttributes() does.
protected Logger
getLogger()
boolean
isActive()
protected boolean
isStopped()
Returns whether the stop() method of this JMXConnectorServer has been called.
protected void
setAddress(javax.management.remote.JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer
void
start()
void
stop()

Methods inherited from class javax.management.remote.JMXConnectorServer

connectionClosed, connectionFailed, connectionOpened, getConnectionIds, getMBeanServer, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, setMBeanServerForwarder, toJMXConnector

Methods inherited from class javax.management.NotificationBroadcasterSupport

addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification

Constructor Details

AbstractJMXConnectorServer

public AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url,
                                  Map environment,
                                  javax.management.MBeanServer server)

Method Details

connectionClosed

public void connectionClosed(String connectionId,
                             String message,
                             Object userData)
Overrides:
connectionClosed in interface javax.management.remote.JMXConnectorServer

connectionFailed

public void connectionFailed(String connectionId,
                             String message,
                             Object userData)
Overrides:
connectionFailed in interface javax.management.remote.JMXConnectorServer

connectionOpened

public void connectionOpened(String connectionId,
                             String message,
                             Object userData)
Overrides:
connectionOpened in interface javax.management.remote.JMXConnectorServer

doStart

protected abstract void doStart()
            throws IOException,
                   IllegalStateException
Template method implemented by subclasses to start this JMXConnectorServer

doStop

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

getAddress

public javax.management.remote.JMXServiceURL getAddress()

getAttributes

public Map getAttributes()

getEnvironment

protected Map getEnvironment()

getLogger

protected Logger getLogger()

isActive

public boolean isActive()

isStopped

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

setAddress

protected void setAddress(javax.management.remote.JMXServiceURL url)
Sets the JMXServiceURL that represent the address of this JMXConnectorServer

start

public void start()
            throws IOException,
                   IllegalStateException

stop

public void stop()
            throws IOException

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.