Class ConnectorServer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.jmx.ConnectorServer
- All Implemented Interfaces:
 LifeCycle
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 AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener - 
Field Summary
Fields - 
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, SslContextFactory.Server sslContextFactory) Constructs a ConnectorServer - 
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()Method to override to start the lifecyclevoiddoStop()Method to override to stop the lifecycleGet the JMXServiceURL of this ConnectorServer.Get the ObjectName of this ConnectorServer.voidputAttribute(String name, Object value) Puts an attribute into the environment Map.voidsetObjectName(String objectName) Set the ObjectName of this ConnectorServer.voidsetSslContextFactory(SslContextFactory.Server sslContextFactory) Methods inherited from class 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, 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
 - 
setSslContextFactory
 - 
doStart
Description copied from class:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
 doStartin classAbstractLifeCycle- Throws:
 Exception- If there was a problem starting. Will cause a transition to FAILED state
 - 
doStop
Description copied from class:AbstractLifeCycleMethod to override to stop the lifecycle- Overrides:
 doStopin classAbstractLifeCycle- Throws:
 Exception- If there was a problem stopping. Will cause a transition to FAILED state
 
 -