|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.replication.plugin.ReplicationServerListener
public class ReplicationServerListener
This class is used to create and object that can register in the admin framework as a listener for changes, add and delete on the ReplicationServer configuration objects.
Constructor Summary | |
---|---|
ReplicationServerListener(ReplicationSynchronizationProviderCfg configuration)
Build a ReplicationServer Listener from the given Multimaster configuration. |
Method Summary | |
---|---|
ConfigChangeResult |
applyConfigurationAdd(ReplicationServerCfg configuration)
Adds a new configuration to this add listener. |
ConfigChangeResult |
applyConfigurationDelete(ReplicationServerCfg configuration)
Deletes an existing configuration from this delete listener. |
ReplicationServer |
getReplicationServer()
Returns the associated Replication Server. |
boolean |
isConfigurationAddAcceptable(ReplicationServerCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is acceptable to this add listener. |
boolean |
isConfigurationDeleteAcceptable(ReplicationServerCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is acceptable to this delete listener. |
void |
shutdown()
Shutdown the replication server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplicationServerListener(ReplicationSynchronizationProviderCfg configuration) throws ConfigException
configuration
- The configuration that will be used to listen
for replicationServer configuration changes.
ConfigException
- if the ReplicationServerListener can't register for
listening to changes on the provided configuration
object.Method Detail |
---|
public ConfigChangeResult applyConfigurationAdd(ReplicationServerCfg configuration)
applyConfigurationAdd
in interface ConfigurationAddListener<ReplicationServerCfg>
configuration
- The configuration that will be added.
public boolean isConfigurationAddAcceptable(ReplicationServerCfg configuration, java.util.List<Message> unacceptableReasons)
isConfigurationAddAcceptable
in interface ConfigurationAddListener<ReplicationServerCfg>
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 void shutdown()
public ConfigChangeResult applyConfigurationDelete(ReplicationServerCfg configuration)
applyConfigurationDelete
in interface ConfigurationDeleteListener<ReplicationServerCfg>
configuration
- The existing configuration that will be deleted.
public boolean isConfigurationDeleteAcceptable(ReplicationServerCfg configuration, java.util.List<Message> unacceptableReasons)
isConfigurationDeleteAcceptable
in interface ConfigurationDeleteListener<ReplicationServerCfg>
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 ReplicationServer getReplicationServer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |