LifeCyclepublic class ConnectorServer extends AbstractLifeCycle
LifeCycle wrapper for JMXConnectorServer.
This class provides the following facilities:
Server lifecycleAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
RMI_REGISTRY_CLIENT_SOCKET_FACTORY_ATTRIBUTE |
| Constructor | Description |
|---|---|
ConnectorServer(javax.management.remote.JMXServiceURL serviceURL,
java.lang.String name) |
Constructs a ConnectorServer
|
ConnectorServer(javax.management.remote.JMXServiceURL svcUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String name) |
Constructs a ConnectorServer
|
ConnectorServer(javax.management.remote.JMXServiceURL svcUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String name,
SslContextFactory sslContextFactory) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doStart() |
|
void |
doStop() |
|
javax.management.remote.JMXServiceURL |
getAddress() |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toStringpublic static final java.lang.String RMI_REGISTRY_CLIENT_SOCKET_FACTORY_ATTRIBUTE
public ConnectorServer(javax.management.remote.JMXServiceURL serviceURL,
java.lang.String name)
serviceURL - the address of the new ConnectorServername - object name string to be assigned to ConnectorServer beanpublic ConnectorServer(javax.management.remote.JMXServiceURL svcUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String name)
svcUrl - the address of the new ConnectorServerenvironment - a set of attributes to control the new ConnectorServer's behavior.
This parameter can be null. Keys in this map must
be Strings. The appropriate type of each associated value depends on
the attribute. The contents of environment are not changed by this call.name - object name string to be assigned to ConnectorServer beanpublic ConnectorServer(javax.management.remote.JMXServiceURL svcUrl,
java.util.Map<java.lang.String,?> environment,
java.lang.String name,
SslContextFactory sslContextFactory)
public javax.management.remote.JMXServiceURL getAddress()
public void doStart()
throws java.lang.Exception
doStart in class AbstractLifeCyclejava.lang.Exceptionpublic void doStop()
throws java.lang.Exception
doStop in class AbstractLifeCyclejava.lang.ExceptionCopyright © 1995–2018 Webtide. All rights reserved.