public class ServiceDiscoveryMechanismConfigManager extends Object implements ConfigurationAddListener<ServiceDiscoveryMechanismCfg>, ConfigurationDeleteListener<ServiceDiscoveryMechanismCfg>
Constructor and Description |
---|
ServiceDiscoveryMechanismConfigManager(ServerContext serverContext)
Declares a new Configuration Manager for this Directory Server.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationAdd(ServiceDiscoveryMechanismCfg configuration)
Adds a new configuration to this add listener.
|
ConfigChangeResult |
applyConfigurationDelete(ServiceDiscoveryMechanismCfg configuration)
Deletes an existing configuration from this delete listener.
|
void |
finalize()
Finalize all service discovery mechanism for shutdown.
|
ServiceDiscoveryMechanism<?> |
getMechanism(String name)
Returns the service discovery with the provided name.
|
void |
initializeServiceDiscoveryMechanismConfigManager()
Initializes the Mechanism Configuration Manager and its configuration at startup.
|
boolean |
isConfigurationAddAcceptable(ServiceDiscoveryMechanismCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is
acceptable to this add listener.
|
boolean |
isConfigurationDeleteAcceptable(ServiceDiscoveryMechanismCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is
acceptable to this delete listener.
|
public ServiceDiscoveryMechanismConfigManager(ServerContext serverContext)
serverContext
- the current directory server contextpublic void initializeServiceDiscoveryMechanismConfigManager()
public ServiceDiscoveryMechanism<?> getMechanism(String name)
name
- the service discovery namenull
if none existpublic boolean isConfigurationAddAcceptable(ServiceDiscoveryMechanismCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationAddListener
isConfigurationAddAcceptable
in interface ConfigurationAddListener<ServiceDiscoveryMechanismCfg>
configuration
- The configuration that will be added.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed addition is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationAdd(ServiceDiscoveryMechanismCfg configuration)
ConfigurationAddListener
applyConfigurationAdd
in interface ConfigurationAddListener<ServiceDiscoveryMechanismCfg>
configuration
- The configuration that will be added.public boolean isConfigurationDeleteAcceptable(ServiceDiscoveryMechanismCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationDeleteListener
isConfigurationDeleteAcceptable
in interface ConfigurationDeleteListener<ServiceDiscoveryMechanismCfg>
configuration
- The configuration that will be deleted.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed deletion is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationDelete(ServiceDiscoveryMechanismCfg configuration)
ConfigurationDeleteListener
applyConfigurationDelete
in interface ConfigurationDeleteListener<ServiceDiscoveryMechanismCfg>
configuration
- The existing configuration that will be deleted.Copyright 2010-2022 ForgeRock AS.