| | |
| | | public void initializeConnectionHandler(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // |
| | | // If the initializeConnectionHandler method is called, |
| | | // it means that the "enabled" attribure was true. |
| | |
| | | public void finalizeConnectionHandler( |
| | | String finalizeReason, boolean closeConnections) |
| | | { |
| | | |
| | | // We should also close the RMI registry. |
| | | rmiConnector.finalizeConnectionHandler(closeConnections, true); |
| | | } |
| | |
| | | */ |
| | | public String getConnectionHandlerName() |
| | | { |
| | | |
| | | return connectionHandlerName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocol() |
| | | { |
| | | |
| | | return protocol; |
| | | } |
| | | |
| | |
| | | */ |
| | | public Collection<HostPort> getListeners() |
| | | { |
| | | |
| | | return listeners; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getShutdownListenerName() |
| | | { |
| | | |
| | | return handlerName; |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getConfigurableComponentEntryDN() |
| | | { |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public List<ConfigAttribute> getConfigurationAttributes() |
| | | { |
| | | |
| | | return configAttrs; |
| | | |
| | | } |
| | |
| | | public boolean hasAcceptableConfiguration( |
| | | ConfigEntry configEntry, List<String> unacceptableReasons) |
| | | { |
| | | |
| | | boolean configValid = true; |
| | | |
| | | // |
| | |
| | | public ConfigChangeResult applyNewConfiguration( |
| | | ConfigEntry configEntry, boolean detailedResults) |
| | | { |
| | | |
| | | // |
| | | // Create variables to include in the response. |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append(handlerName); |
| | | } |
| | | |
| | |
| | | */ |
| | | public DN getComponentEntryDN() |
| | | { |
| | | |
| | | return configEntryDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getClassName() |
| | | { |
| | | |
| | | return CLASS_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public LinkedHashMap<String, String> getAlerts() |
| | | { |
| | | |
| | | LinkedHashMap<String, String> alerts = new LinkedHashMap<String, String>(); |
| | | |
| | | return alerts; |
| | |
| | | private BooleanConfigAttribute getEnabledAtt(ConfigEntry configEntry) |
| | | throws InitializationException, ConfigException |
| | | { |
| | | |
| | | int msgID = MSGID_CONFIG_CONNHANDLER_ATTR_DESCRIPTION_ENABLED; |
| | | BooleanConfigAttribute enabledStub = |
| | | new BooleanConfigAttribute(ATTR_CONNECTION_HANDLER_ENABLED, |
| | |
| | | private IntegerConfigAttribute getListenPort(ConfigEntry configEntry) |
| | | throws InitializationException, ConfigException |
| | | { |
| | | |
| | | int msgID = MSGID_JMX_CONNHANDLER_DESCRIPTION_LISTEN_PORT; |
| | | IntegerConfigAttribute portStub = new IntegerConfigAttribute( |
| | | ATTR_LISTEN_PORT, getMessage(msgID), true, false, false, true, 1, |