LifeCycle wrapper for JMXConnectorServer.
This class provides the following facilities:
Server lifecycle| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private JMXConnectorServer | |
| private final Map | |
| private JMXServiceURL | |
| private String | |
| private Registry | |
| private int | |
| private int | |
| private SslContextFactory. | |
| private static final int | |
| private static final Logger | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | ConnectorServer(JMXServiceURL
the address of the new ConnectorServer serviceURL, String object name string to be assigned to ConnectorServer bean objectName)Constructs a ConnectorServer |
| public | ConnectorServer(JMXServiceURL
the address of the new ConnectorServer serviceURL, Map<String, ?> 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. environment, String object name string to be assigned to ConnectorServer bean objectName)Constructs a ConnectorServer |
| public | ConnectorServer(JMXServiceURL
the address of the new ConnectorServer serviceURL, Map<String, ?> 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. environment, String object name string to be assigned to ConnectorServer bean objectName, SslContextFactory.the SslContextFactory.Server to use for secure communication sslContextFactoryConstructs a ConnectorServer |
| Modifier and Type | Method and Description |
|---|---|
| public void | doStart()
Overrides org. Method to override to start the lifecycle |
| public void | doStop()
Overrides org. Method to override to stop the lifecycle |
| public JMXServiceURL | Returns: the JMXServiceURL of this ConnectorServerGet the JMXServiceURL of this ConnectorServer. |
| public String | Returns: the ObjectName of this ConnectorServerGet the ObjectName of this ConnectorServer. |
| public SslContextFactory. | |
| private String | |
| public void | putAttribute(String
the attribute name name, Object the attribute value value)Puts an attribute into the environment Map. |
| public void | setObjectName(String
the ObjectName of this ConnectorServer objectName)Set the ObjectName of this ConnectorServer. |
| public void | |
| private String | |
| private void |
| _connectorServer | back to summary |
|---|---|
| private JMXConnectorServer _connectorServer | |
| _environment | back to summary |
|---|---|
| private final Map<String, Object> _environment | |
| _jmxURL | back to summary |
|---|---|
| private JMXServiceURL _jmxURL | |
| _objectName | back to summary |
|---|---|
| private String _objectName | |
| _registry | back to summary |
|---|---|
| private Registry _registry | |
| _registryPort | back to summary |
|---|---|
| private int _registryPort | |
| _rmiPort | back to summary |
|---|---|
| private int _rmiPort | |
| _sslContextFactory | back to summary |
|---|---|
| private SslContextFactory. | |
| DEFAULT_REGISTRY_PORT | back to summary |
|---|---|
| private static final int DEFAULT_REGISTRY_PORT | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| RMI_REGISTRY_CLIENT_SOCKET_FACTORY_ATTRIBUTE | back to summary |
|---|---|
| public static final String RMI_REGISTRY_CLIENT_SOCKET_FACTORY_ATTRIBUTE | |
| ConnectorServer | back to summary |
|---|---|
| public ConnectorServer(JMXServiceURL serviceURL, String objectName) Constructs a ConnectorServer
| |
| ConnectorServer | back to summary |
|---|---|
| public ConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, String objectName) Constructs a ConnectorServer
| |
| ConnectorServer | back to summary |
|---|---|
| public ConnectorServer(JMXServiceURL serviceURL, Map<String, ?> environment, String objectName, SslContextFactory. Constructs a ConnectorServer
| |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception Overrides org. Doc from org. Method to override to start the lifecycle | |
| doStop | back to summary |
|---|---|
| public void doStop() throws Exception Overrides org. Doc from org. Method to override to stop the lifecycle | |
| getAddress | back to summary |
|---|---|
| public JMXServiceURL getAddress() Get the JMXServiceURL of this ConnectorServer.
| |
| getObjectName | back to summary |
|---|---|
| public String getObjectName() Get the ObjectName of this ConnectorServer.
| |
| getSslContextFactory | back to summary |
|---|---|
| public SslContextFactory. | |
| normalizeHost | back to summary |
|---|---|
| private String normalizeHost(String host) throws UnknownHostException | |
| putAttribute | back to summary |
|---|---|
| public void putAttribute(String name, Object value) Puts an attribute into the environment Map. | |
| setObjectName | back to summary |
|---|---|
| public void setObjectName(String objectName) Set the ObjectName of this ConnectorServer.
| |
| setSslContextFactory | back to summary |
|---|---|
| public void setSslContextFactory(SslContextFactory. | |
| startRegistry | back to summary |
|---|---|
| private String startRegistry(HostPort hostPort) throws Exception | |
| stopRegistry | back to summary |
|---|---|
| private void stopRegistry() | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final IntConsumer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ServerSocket | createServerSocket(int
the port number port)Implements java. Create a server socket on the specified port (port 0 indicates an anonymous port). |
| private ServerSocket | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| _host | back to summary |
|---|---|
| private final String _host | |
| _portConsumer | back to summary |
|---|---|
| private final IntConsumer _portConsumer | |
| JMXRMIServerSocketFactory | back to summary |
|---|---|
| private JMXRMIServerSocketFactory(String host, IntConsumer portConsumer) | |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket(int port) throws IOException Implements java. Doc from java. Create a server socket on the specified port (port 0 indicates an anonymous port).
| |
| createServerSocket | back to summary |
|---|---|
| private ServerSocket createServerSocket(InetAddress address, int port) throws IOException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |