| | |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.ErrorLogCategory; |
| | | import org.opends.server.types.ErrorLogSeverity; |
| | | import org.opends.server.types.HostPort; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.ResultCode; |
| | | |
| | |
| | | new LinkedList<ConfigAttribute>(); |
| | | |
| | | /** |
| | | * The unique name for this connection handler. |
| | | */ |
| | | protected String connectionHandlerName; |
| | | |
| | | /** |
| | | * The protocol used to communicate with clients. |
| | | */ |
| | | protected String protocol; |
| | | |
| | | /** |
| | | * The set of listeners for this connection handler. |
| | | */ |
| | | protected LinkedList<HostPort> listeners = new LinkedList<HostPort>(); |
| | | |
| | | /** |
| | | * The list of active client connection. |
| | | */ |
| | | protected LinkedList<ClientConnection> connectionList = |
| | |
| | | String message = getMessage(msgID, String.valueOf(configEntryDN), ""); |
| | | throw new InitializationException(msgID, message); |
| | | } |
| | | |
| | | if (useSSL) |
| | | { |
| | | protocol = "JMX+SSL"; |
| | | } |
| | | else |
| | | { |
| | | protocol = "JMX"; |
| | | } |
| | | |
| | | listeners.clear(); |
| | | listeners.add(new HostPort("0.0.0.0", listenPort)); |
| | | connectionHandlerName = "JMX Connection Handler "+ listenPort; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String getConnectionHandlerName() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getConnectionHandlerName"); |
| | | |
| | | return connectionHandlerName; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String getProtocol() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getProtocol"); |
| | | |
| | | return protocol; |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Collection<HostPort> getListeners() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getListeners"); |
| | | |
| | | return listeners; |
| | | } |
| | | |
| | | /** |
| | | * Retrieves the set of active client connections that have been |
| | | * established through this connection handler. |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | if (useSSL) |
| | | { |
| | | protocol = "JMX+SSL"; |
| | | } |
| | | else |
| | | { |
| | | protocol = "JMX"; |
| | | } |
| | | |
| | | listeners.clear(); |
| | | listeners.add(new HostPort(listenPort)); |
| | | |
| | | // |
| | | // Start the new RMI Connector |
| | | rmiConnector.initialize(); |