| | |
| | | import org.opends.server.admin.std.server.SNMPConnectionHandlerCfg; |
| | | import org.forgerock.opendj.config.server.ConfigException; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ServerContext; |
| | | import org.opends.server.types.InitializationException; |
| | | |
| | | import static org.opends.messages.ProtocolMessages.*; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void initializeConnectionHandler( |
| | | SNMPConnectionHandlerCfg configuration) |
| | | @Override |
| | | public void initializeConnectionHandler(ServerContext serverContext, SNMPConnectionHandlerCfg configuration) |
| | | throws ConfigException, InitializationException { |
| | | |
| | | if (configuration == null) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isConfigurationChangeAcceptable( |
| | | SNMPConnectionHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public ConfigChangeResult applyConfigurationChange( |
| | | SNMPConnectionHandlerCfg configuration) { |
| | | if ((this.isOperational) && (this.provider!=null)){ |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public DN getComponentEntryDN() { |
| | | return this.currentConfig.dn(); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public String getClassName() { |
| | | return SNMPConnectionHandler.class.getName(); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public LinkedHashMap<String, String> getAlerts() { |
| | | LinkedHashMap<String, String> alerts = |
| | | new LinkedHashMap<String, String>(); |