public class ReplicationServerListener extends Object implements ConfigurationAddListener<ReplicationServerCfg>, ConfigurationChangeListener<ReplicationDomainCfg>, ConfigurationDeleteListener<ReplicationServerCfg>
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationAdd(ReplicationServerCfg cfg)
Adds a new configuration to this add listener.
|
ConfigChangeResult |
applyConfigurationChange(ReplicationDomainCfg configuration)
Applies the configuration changes to this change listener.
|
ConfigChangeResult |
applyConfigurationDelete(ReplicationServerCfg cfg)
Deletes an existing configuration from this delete listener.
|
ReplicationServer |
getReplicationServer()
Returns the associated Replication Server.
|
boolean |
isConfigurationAddAcceptable(ReplicationServerCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is
acceptable to this add listener.
|
boolean |
isConfigurationChangeAcceptable(ReplicationDomainCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
boolean |
isConfigurationDeleteAcceptable(ReplicationServerCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is
acceptable to this delete listener.
|
void |
shutdown()
Shutdown the replication server.
|
public ConfigChangeResult applyConfigurationAdd(ReplicationServerCfg cfg)
ConfigurationAddListener
applyConfigurationAdd
in interface ConfigurationAddListener<ReplicationServerCfg>
cfg
- The configuration that will be added.public boolean isConfigurationAddAcceptable(ReplicationServerCfg cfg, List<LocalizableMessage> unacceptableReasons)
ConfigurationAddListener
isConfigurationAddAcceptable
in interface ConfigurationAddListener<ReplicationServerCfg>
cfg
- 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 void shutdown()
public ConfigChangeResult applyConfigurationDelete(ReplicationServerCfg cfg)
ConfigurationDeleteListener
applyConfigurationDelete
in interface ConfigurationDeleteListener<ReplicationServerCfg>
cfg
- The existing configuration that will be deleted.public boolean isConfigurationDeleteAcceptable(ReplicationServerCfg cfg, List<LocalizableMessage> unacceptableReasons)
ConfigurationDeleteListener
isConfigurationDeleteAcceptable
in interface ConfigurationDeleteListener<ReplicationServerCfg>
cfg
- 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 ReplicationServer getReplicationServer()
public boolean isConfigurationChangeAcceptable(ReplicationDomainCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<ReplicationDomainCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(ReplicationDomainCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<ReplicationDomainCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2018 ForgeRock AS.