Interface ReplicationSynchronizationProviderCfg
-
- All Superinterfaces:
Configuration,SynchronizationProviderCfg
public interface ReplicationSynchronizationProviderCfg extends SynchronizationProviderCfg
A server-side interface for querying Replication Synchronization Provider settings.The Replication Synchronization Provider provides multi-master replication of data across multiple directory server instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddReplicationChangeListener(ConfigurationChangeListener<ReplicationSynchronizationProviderCfg> listener)Register to be notified when this Replication Synchronization Provider is changed.voidaddReplicationDomainAddListener(ConfigurationAddListener<ReplicationDomainCfg> listener)Registers to be notified when new Replication Domains are added.voidaddReplicationDomainDeleteListener(ConfigurationDeleteListener<ReplicationDomainCfg> listener)Registers to be notified when existing Replication Domains are deleted.voidaddReplicationServerAddListener(ConfigurationAddListener<ReplicationServerCfg> listener)Registers to be notified when the Replication Server is added.voidaddReplicationServerDeleteListener(ConfigurationDeleteListener<ReplicationServerCfg> listener)Registers to be notified the Replication Server is deleted.Class<? extends ReplicationSynchronizationProviderCfg>configurationClass()Gets the configuration class associated with this Replication Synchronization Provider.longgetConnectionTimeout()Gets the "connection-timeout" property.StringgetJavaClass()Gets the "java-class" property.IntegergetNumUpdateReplayThreads()Gets the "num-update-replay-threads" property.ReplicationDomainCfggetReplicationDomain(String name)Gets the named Replication Domain.ReplicationServerCfggetReplicationServer()Gets the Replication Server if it is present.booleanhasReplicationServer()Determines whether the Replication Server exists.String[]listReplicationDomains()Lists the Replication Domains.voidremoveReplicationChangeListener(ConfigurationChangeListener<ReplicationSynchronizationProviderCfg> listener)Deregister an existing Replication Synchronization Provider configuration change listener.voidremoveReplicationDomainAddListener(ConfigurationAddListener<ReplicationDomainCfg> listener)Deregisters an existing Replication Domain configuration add listener.voidremoveReplicationDomainDeleteListener(ConfigurationDeleteListener<ReplicationDomainCfg> listener)Deregisters an existing Replication Domain configuration delete listener.voidremoveReplicationServerAddListener(ConfigurationAddListener<ReplicationServerCfg> listener)Deregisters an existing Replication Server configuration add listener.voidremoveReplicationServerDeleteListener(ConfigurationDeleteListener<ReplicationServerCfg> listener)Deregisters an existing Replication Server configuration delete listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.SynchronizationProviderCfg
addChangeListener, isEnabled, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends ReplicationSynchronizationProviderCfg> configurationClass()
Gets the configuration class associated with this Replication Synchronization Provider.- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceSynchronizationProviderCfg- Returns:
- Returns the configuration class associated with this Replication Synchronization Provider.
-
addReplicationChangeListener
void addReplicationChangeListener(ConfigurationChangeListener<ReplicationSynchronizationProviderCfg> listener)
Register to be notified when this Replication Synchronization Provider is changed.- Parameters:
listener- The Replication Synchronization Provider configuration change listener.
-
removeReplicationChangeListener
void removeReplicationChangeListener(ConfigurationChangeListener<ReplicationSynchronizationProviderCfg> listener)
Deregister an existing Replication Synchronization Provider configuration change listener.- Parameters:
listener- The Replication Synchronization Provider configuration change listener.
-
getConnectionTimeout
long getConnectionTimeout()
Gets the "connection-timeout" property.Specifies the timeout used when connecting to peers and when performing SSL negotiation.
- Returns:
- Returns the value of the "connection-timeout" property.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Replication Synchronization Provider implementation.
- Specified by:
getJavaClassin interfaceSynchronizationProviderCfg- Returns:
- Returns the value of the "java-class" property.
-
getNumUpdateReplayThreads
Integer getNumUpdateReplayThreads()
Gets the "num-update-replay-threads" property.Specifies the number of update replay threads.
This value is the number of threads created for replaying every updates received for all the replication domains.
- Returns:
- Returns the value of the "num-update-replay-threads" property.
-
listReplicationDomains
String[] listReplicationDomains()
Lists the Replication Domains.- Returns:
- Returns an array containing the names of the Replication Domains.
-
getReplicationDomain
ReplicationDomainCfg getReplicationDomain(String name) throws ConfigException
Gets the named Replication Domain.- Parameters:
name- The name of the Replication Domain to retrieve.- Returns:
- Returns the named Replication Domain.
- Throws:
ConfigException- If the Replication Domain could not be found or it could not be successfully decoded.
-
addReplicationDomainAddListener
void addReplicationDomainAddListener(ConfigurationAddListener<ReplicationDomainCfg> listener) throws ConfigException
Registers to be notified when new Replication Domains are added.- Parameters:
listener- The Replication Domain configuration add listener.- Throws:
ConfigException- If the add listener could not be registered.
-
removeReplicationDomainAddListener
void removeReplicationDomainAddListener(ConfigurationAddListener<ReplicationDomainCfg> listener)
Deregisters an existing Replication Domain configuration add listener.- Parameters:
listener- The Replication Domain configuration add listener.
-
addReplicationDomainDeleteListener
void addReplicationDomainDeleteListener(ConfigurationDeleteListener<ReplicationDomainCfg> listener) throws ConfigException
Registers to be notified when existing Replication Domains are deleted.- Parameters:
listener- The Replication Domain configuration delete listener.- Throws:
ConfigException- If the delete listener could not be registered.
-
removeReplicationDomainDeleteListener
void removeReplicationDomainDeleteListener(ConfigurationDeleteListener<ReplicationDomainCfg> listener)
Deregisters an existing Replication Domain configuration delete listener.- Parameters:
listener- The Replication Domain configuration delete listener.
-
hasReplicationServer
boolean hasReplicationServer()
Determines whether the Replication Server exists.- Returns:
- Returns
if the Replication Server exists.
-
getReplicationServer
ReplicationServerCfg getReplicationServer() throws ConfigException
Gets the Replication Server if it is present.- Returns:
- Returns the Replication Server if it is present.
- Throws:
ConfigException- If the Replication Server does not exist or it could not be successfully decoded.
-
addReplicationServerAddListener
void addReplicationServerAddListener(ConfigurationAddListener<ReplicationServerCfg> listener) throws ConfigException
Registers to be notified when the Replication Server is added.- Parameters:
listener- The Replication Server configuration add listener.- Throws:
ConfigException- If the add listener could not be registered.
-
removeReplicationServerAddListener
void removeReplicationServerAddListener(ConfigurationAddListener<ReplicationServerCfg> listener)
Deregisters an existing Replication Server configuration add listener.- Parameters:
listener- The Replication Server configuration add listener.
-
addReplicationServerDeleteListener
void addReplicationServerDeleteListener(ConfigurationDeleteListener<ReplicationServerCfg> listener) throws ConfigException
Registers to be notified the Replication Server is deleted.- Parameters:
listener- The Replication Server configuration delete listener.- Throws:
ConfigException- If the delete listener could not be registered.
-
removeReplicationServerDeleteListener
void removeReplicationServerDeleteListener(ConfigurationDeleteListener<ReplicationServerCfg> listener)
Deregisters an existing Replication Server configuration delete listener.- Parameters:
listener- The Replication Server configuration delete listener.
-
-