public abstract class AbstractJMXConnectorServer
extends javax.management.remote.JMXConnectorServer
ConnectionManager| Constructor and Description |
|---|
AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment,
javax.management.MBeanServer server) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getConnectionIds, getMBeanServer, getNotificationInfo, postDeregister, postRegister, preDeregister, preRegister, setMBeanServerForwarder, toJMXConnectorpublic AbstractJMXConnectorServer(javax.management.remote.JMXServiceURL url,
java.util.Map environment,
javax.management.MBeanServer server)
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.IOExceptionjava.lang.IllegalStateExceptionprotected abstract void doStart()
throws java.io.IOException,
java.lang.IllegalStateException
java.io.IOExceptionjava.lang.IllegalStateExceptionpublic void stop()
throws java.io.IOException
java.io.IOExceptionprotected abstract void doStop()
throws java.io.IOException
java.io.IOExceptionprotected Logger getLogger()
public void connectionOpened(java.lang.String connectionId,
java.lang.String message,
java.lang.Object userData)
connectionOpened in class javax.management.remote.JMXConnectorServerpublic void connectionClosed(java.lang.String connectionId,
java.lang.String message,
java.lang.Object userData)
connectionClosed in class javax.management.remote.JMXConnectorServerpublic void connectionFailed(java.lang.String connectionId,
java.lang.String message,
java.lang.Object userData)
connectionFailed in class javax.management.remote.JMXConnectorServer