|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport javax.management.remote.JMXConnectorServer mx4j.tools.remote.AbstractJMXConnectorServer
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.
ConnectionManager
Field Summary |
Fields inherited from class javax.management.remote.JMXConnectorServer |
AUTHENTICATOR |
Constructor Summary | |
AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment,
javax.management.MBeanServer server)
|
Method Summary | |
void |
connectionClosed(java.lang.String connectionId,
java.lang.String message,
java.lang.Object userData)
|
void |
connectionFailed(java.lang.String connectionId,
java.lang.String message,
java.lang.Object userData)
|
void |
connectionOpened(java.lang.String connectionId,
java.lang.String message,
java.lang.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()
|
java.util.Map |
getAttributes()
|
protected java.util.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 |
getConnectionIds, getMBeanServer, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, setMBeanServerForwarder, toJMXConnector |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url, java.util.Map environment, javax.management.MBeanServer server)
Method Detail |
public javax.management.remote.JMXServiceURL getAddress()
protected void setAddress(javax.management.remote.JMXServiceURL url)
public java.util.Map getAttributes()
protected java.util.Map getEnvironment()
getAttributes()
does.
public boolean isActive()
protected boolean isStopped()
stop()
method of this JMXConnectorServer has been called.
public void start() throws java.io.IOException, java.lang.IllegalStateException
java.io.IOException
java.lang.IllegalStateException
protected abstract void doStart() throws java.io.IOException, java.lang.IllegalStateException
java.io.IOException
java.lang.IllegalStateException
public void stop() throws java.io.IOException
java.io.IOException
protected abstract void doStop() throws java.io.IOException
java.io.IOException
protected Logger getLogger()
public void connectionOpened(java.lang.String connectionId, java.lang.String message, java.lang.Object userData)
public void connectionClosed(java.lang.String connectionId, java.lang.String message, java.lang.Object userData)
public void connectionFailed(java.lang.String connectionId, java.lang.String message, java.lang.Object userData)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |