mx4j.tools.remote
Class AbstractJMXConnectorServer
java.lang.Object
javax.management.NotificationBroadcasterSupport
javax.management.remote.JMXConnectorServer
mx4j.tools.remote.AbstractJMXConnectorServer
- javax.management.remote.JMXConnectorServerMBean, javax.management.MBeanRegistration, javax.management.NotificationEmitter
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.
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()
|
connectionClosed , connectionFailed , connectionOpened , getConnectionIds , getMBeanServer , getNotificationInfo , postDeregister , postRegister , preDeregister , preRegister , setMBeanServerForwarder , toJMXConnector |
AbstractJMXConnectorServer
public AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url,
Map environment,
javax.management.MBeanServer server)
connectionClosed
public void connectionClosed(String connectionId,
String message,
Object userData)
- connectionClosed in interface javax.management.remote.JMXConnectorServer
connectionFailed
public void connectionFailed(String connectionId,
String message,
Object userData)
- connectionFailed in interface javax.management.remote.JMXConnectorServer
connectionOpened
public void connectionOpened(String connectionId,
String message,
Object userData)
- 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()
Returns the environment Map as is, without removing non-serializable entries like
getAttributes()
does.
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.