java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.jmx.ConnectorServer
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle
public class ConnectorServer
extends org.eclipse.jetty.util.component.AbstractLifeCycle
LifeCycle wrapper for JMXConnectorServer.
This class provides the following facilities:
- participates in the
Serverlifecycle - starts the RMI registry if not there already
- allows to bind the RMI registry and the RMI server to the loopback interface
- makes it easy to use TLS for the RMI communication
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
FieldsFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, STARTED, STARTING, STOPPED, STOPPING -
Constructor Summary
ConstructorsConstructorDescriptionConnectorServer(JMXServiceURL serviceURL, String objectName) Constructs a ConnectorServerConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, String objectName) Constructs a ConnectorServerConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, String objectName, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory) Constructs a ConnectorServer -
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()voiddoStop()Get the JMXServiceURL of this ConnectorServer.Get the ObjectName of this ConnectorServer.org.eclipse.jetty.util.ssl.SslContextFactory.ServervoidputAttribute(String name, Object value) Puts an attribute into the environment Map.voidsetObjectName(String objectName) Set the ObjectName of this ConnectorServer.voidsetSslContextFactory(org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Field Details
-
RMI_REGISTRY_CLIENT_SOCKET_FACTORY_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
ConnectorServer
Constructs a ConnectorServer- Parameters:
serviceURL- the address of the new ConnectorServerobjectName- object name string to be assigned to ConnectorServer bean
-
ConnectorServer
Constructs a ConnectorServer- Parameters:
serviceURL- 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.objectName- object name string to be assigned to ConnectorServer bean
-
ConnectorServer
public ConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, String objectName, org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory) Constructs a ConnectorServer- Parameters:
serviceURL- 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.objectName- object name string to be assigned to ConnectorServer beansslContextFactory- the SslContextFactory.Server to use for secure communication
-
-
Method Details
-
getAddress
Get the JMXServiceURL of this ConnectorServer.- Returns:
- the JMXServiceURL of this ConnectorServer
-
putAttribute
-
getObjectName
Get the ObjectName of this ConnectorServer.- Returns:
- the ObjectName of this ConnectorServer
-
setObjectName
Set the ObjectName of this ConnectorServer.- Parameters:
objectName- the ObjectName of this ConnectorServer
-
getSslContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory.Server getSslContextFactory() -
setSslContextFactory
public void setSslContextFactory(org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory) -
doStart
-
doStop
-