| | |
| | | */ |
| | | package org.opends.server.protocols.jmx; |
| | | |
| | | import static org.opends.messages.ProtocolMessages.*; |
| | | import static org.opends.server.loggers.ErrorLogger.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import java.io.IOException; |
| | | import java.net.InetSocketAddress; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | |
| | | import org.opends.server.api.ServerShutdownListener; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.HostPort; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.util.StaticUtils; |
| | | |
| | | |
| | | import static org.opends.messages.ProtocolMessages.*; |
| | | import static org.opends.server.loggers.ErrorLogger.*; |
| | | import static org.opends.server.types.HostPort.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | /** |
| | | * This class defines a connection handler that will be used for |
| | |
| | | ServerShutdownListener, AlertGenerator, |
| | | ConfigurationChangeListener<JMXConnectionHandlerCfg> { |
| | | |
| | | private static final String WILDCARD_ADDRESS = "0.0.0.0"; |
| | | |
| | | /** |
| | | * Key that may be placed into a JMX connection environment map to |
| | | * provide a custom <code>javax.net.ssl.TrustManager</code> array |
| | |
| | | } |
| | | |
| | | listeners.clear(); |
| | | listeners.add(new HostPort(config.getListenPort())); |
| | | listeners.add(HostPort.allAddresses(config.getListenPort())); |
| | | |
| | | rmiConnector.finalizeConnectionHandler(portChanged); |
| | | try |
| | |
| | | } |
| | | |
| | | listeners.clear(); |
| | | listeners.add(new HostPort(WILDCARD_ADDRESS, config.getListenPort())); |
| | | listeners.add(HostPort.allAddresses(config.getListenPort())); |
| | | connectionHandlerName = "JMX Connection Handler " + config.getListenPort(); |
| | | |
| | | // Create a system property to store the JMX port the server is |