public interface ReplicationDomainCfg extends Configuration
A Replication Domain comprises of several Directory Servers sharing the same synchronized set of data.
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
Register to be notified when this Replication Domain is changed.
|
Class<? extends ReplicationDomainCfg> |
configurationClass()
Gets the configuration class associated with this Replication Domain.
|
int |
getAssuredSdLevel()
Gets the "assured-sd-level" property.
|
long |
getAssuredTimeout()
Gets the "assured-timeout" property.
|
ReplicationDomainCfgDefn.AssuredType |
getAssuredType()
Gets the "assured-type" property.
|
Dn |
getBaseDn()
Gets the "base-dn" property.
|
long |
getChangetimeHeartbeatInterval()
Gets the "changetime-heartbeat-interval" property.
|
long |
getConflictsHistoricalPurgeDelay()
Gets the "conflicts-historical-purge-delay" property.
|
ExternalChangelogDomainCfg |
getExternalChangelogDomain()
Gets the External Changelog Domain.
|
SortedSet<String> |
getFractionalExclude()
Gets the "fractional-exclude" property.
|
SortedSet<String> |
getFractionalInclude()
Gets the "fractional-include" property.
|
int |
getGroupId()
Gets the "group-id" property.
|
long |
getHeartbeatInterval()
Gets the "heartbeat-interval" property.
|
int |
getInitializationWindowSize()
Gets the "initialization-window-size" property.
|
ReplicationDomainCfgDefn.IsolationPolicy |
getIsolationPolicy()
Gets the "isolation-policy" property.
|
SortedSet<String> |
getReferralsUrl()
Gets the "referrals-url" property.
|
SortedSet<String> |
getReplicationServer()
Gets the "replication-server" property.
|
int |
getServerId()
Gets the "server-id" property.
|
InetAddress |
getSourceAddress()
Gets the "source-address" property.
|
boolean |
isLogChangenumber()
Gets the "log-changenumber" property.
|
boolean |
isSolveConflicts()
Gets the "solve-conflicts" property.
|
void |
removeChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
Deregister an existing Replication Domain configuration change listener.
|
dn, name
Class<? extends ReplicationDomainCfg> configurationClass()
configurationClass
in interface Configuration
void addChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
listener
- The Replication Domain configuration change listener.void removeChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
listener
- The Replication Domain configuration change listener.int getAssuredSdLevel()
The level of acknowledgment for Safe Data assured sub mode.
When assured replication is configured in Safe Data mode, this value defines the number of replication servers (with the same group ID of the local server) that should acknowledge the sent update before the LDAP client call can return.
long getAssuredTimeout()
The timeout value when waiting for assured replication acknowledgments.
Defines the amount of milliseconds the server will wait for assured acknowledgments (in either Safe Data or Safe Read assured replication modes) before returning anyway the LDAP client call.
ReplicationDomainCfgDefn.AssuredType getAssuredType()
Defines the assured replication mode of the replicated domain.
The assured replication can be disabled or enabled. When enabled, two modes are available: Safe Data or Safe Read modes.
Dn getBaseDn()
Specifies the base DN of the replicated data.
long getChangetimeHeartbeatInterval()
Specifies the heartbeat interval that the directory server will use when sending its local change time to the Replication Server.
The directory server sends a regular heartbeat to the Replication within the specified interval. The heartbeat indicates the change time of the directory server to the Replication Server.
long getConflictsHistoricalPurgeDelay()
This delay indicates the time (in minutes) the domain keeps the historical information necessary to solve conflicts.When a change stored in the historical part of the user entry has a date (from its replication ChangeNumber) older than this delay, it is candidate to be purged. The purge is applied on 2 events: modify of the entry, dedicated purge task.
SortedSet<String> getFractionalExclude()
Allows to exclude some attributes to replicate to this server.
If fractional-exclude configuration attribute is used, attributes specified in this attribute will be ignored (not added/modified/deleted) when an operation performed from another directory server is being replayed in the local server. Note that the usage of this configuration attribute is mutually exclusive with the usage of the fractional-include attribute.
SortedSet<String> getFractionalInclude()
Allows to include some attributes to replicate to this server.
If fractional-include configuration attribute is used, only attributes specified in this attribute will be added/modified/deleted when an operation performed from another directory server is being replayed in the local server. Note that the usage of this configuration attribute is mutually exclusive with the usage of the fractional-exclude attribute.
int getGroupId()
The group ID associated with this replicated domain.
This value defines the group ID of the replicated domain. The replication system will preferably connect and send updates to replicate to a replication server with the same group ID as its own one (the local server group ID).
long getHeartbeatInterval()
Specifies the heartbeat interval that the directory server will use when communicating with Replication Servers.
The directory server expects a regular heartbeat coming from the Replication Server within the specified interval. If a heartbeat is not received within the interval, the Directory Server closes its connection and connects to another Replication Server.
int getInitializationWindowSize()
Specifies the window size that this directory server may use when communicating with remote Directory Servers for initialization.
ReplicationDomainCfgDefn.IsolationPolicy getIsolationPolicy()
Specifies the behavior of the directory server if a write operation is attempted on the data within the Replication Domain when none of the configured Replication Servers are available.
boolean isLogChangenumber()
Indicates if this server logs the ChangeNumber in access log.
This boolean indicates if the domain should log the ChangeNumber of replicated operations in the access log.
SortedSet<String> getReferralsUrl()
The URLs other LDAP servers should use to refer to the local server.
URLs used by peer servers in the topology to refer to the local server through LDAP referrals. If this attribute is not defined, every URLs available to access this server will be used. If defined, only URLs specified here will be used.
SortedSet<String> getReplicationServer()
Specifies the addresses of the Replication Servers within the Replication Domain to which the directory server should try to connect at startup time.
Addresses must be specified using the syntax: hostname:port
int getServerId()
Specifies a unique identifier for the directory server within the Replication Domain.
Each directory server within the same Replication Domain must have a different server ID. A directory server which is a member of multiple Replication Domains may use the same server ID for each of its Replication Domain configurations.
boolean isSolveConflicts()
Indicates if this server solves conflict.
This boolean indicates if this domain keeps the historical information necessary to solve conflicts. When set to false the server will not maintain historical information and will therefore not be able to solve conflict. This should therefore be done only if the replication is used in a single master type of deployment.
InetAddress getSourceAddress()
If specified, the server will bind to the address before connecting to the remote server.
The address must be one assigned to an existing network interface.
ExternalChangelogDomainCfg getExternalChangelogDomain() throws ConfigException
ConfigException
- If the External Changelog Domain could not be found or it could not
be successfully decoded.Copyright 2010-2020 ForgeRock AS.