Interface ReplicationDomainCfg
-
- All Superinterfaces:
Configuration
public interface ReplicationDomainCfg extends Configuration
A server-side interface for querying Replication Domain settings.A Replication Domain comprises of several Directory Servers sharing the same synchronized set of data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.Dn
getBaseDn()
Gets the "base-dn" property.SortedSet<com.forgerock.opendj.util.HostPort>
getBootstrapReplicationServer()
Gets the "bootstrap-replication-server" property.Long
getChangetimeHeartbeatInterval()
Gets the "changetime-heartbeat-interval" property.SortedSet<String>
getEclInclude()
Gets the "ecl-include" property.SortedSet<String>
getEclIncludeForDeletes()
Gets the "ecl-include-for-deletes" property.SortedSet<String>
getFractionalExclude()
Gets the "fractional-exclude" property.SortedSet<String>
getFractionalInclude()
Gets the "fractional-include" property.String
getGroupId()
Gets the "group-id" property.String
getGroupIdFailoverOrder()
Gets the "group-id-failover-order" property.Long
getHeartbeatInterval()
Gets the "heartbeat-interval" property.Integer
getInitializationWindowSize()
Gets the "initialization-window-size" property.ReplicationSynchronizationProviderCfgDefn.IsolationPolicy
getIsolationPolicy()
Gets the "isolation-policy" property.SortedSet<String>
getReferralsUrl()
Gets the "referrals-url" property.Long
getReplicationPurgeDelay()
Gets the "replication-purge-delay" property.com.forgerock.opendj.util.Host
getSourceAddress()
Gets the "source-address" property.boolean
isEnabled()
Gets the "enabled" 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.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
-
-
-
Method Detail
-
configurationClass
Class<? extends ReplicationDomainCfg> configurationClass()
Gets the configuration class associated with this Replication Domain.- Specified by:
configurationClass
in interfaceConfiguration
- Returns:
- Returns the configuration class associated with this Replication Domain.
-
addChangeListener
void addChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
Register to be notified when this Replication Domain is changed.- Parameters:
listener
- The Replication Domain configuration change listener.
-
removeChangeListener
void removeChangeListener(ConfigurationChangeListener<ReplicationDomainCfg> listener)
Deregister an existing Replication Domain configuration change listener.- Parameters:
listener
- The Replication Domain configuration change listener.
-
getBaseDn
Dn getBaseDn()
Gets the "base-dn" property.Specifies the base DN of the replicated data.
- Returns:
- Returns the value of the "base-dn" property.
-
getBootstrapReplicationServer
SortedSet<com.forgerock.opendj.util.HostPort> getBootstrapReplicationServer()
Gets the "bootstrap-replication-server" property.The addresses of one or more replication servers within the topology which this server should connect to in order to discover the rest of the topology.
Addresses must be specified using the replication port of the remote replication servers using the syntax "hostname:repl-port". When using an IPv6 address as the hostname, put brackets around the address as in "[IPv6Address]:repl-port".
Default value is inherited from another property
- Returns:
- Returns an unmodifiable set containing the values of the "bootstrap-replication-server" property.
-
getChangetimeHeartbeatInterval
Long getChangetimeHeartbeatInterval()
Gets the "changetime-heartbeat-interval" property.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.
Default value is inherited from another property
- Returns:
- Returns the value of the "changetime-heartbeat-interval" property.
-
getEclInclude
SortedSet<String> getEclInclude()
Gets the "ecl-include" property.Specifies a list of attributes which should be published with every change log entry, regardless of whether the attribute itself has changed.
The list of attributes may include wild cards such as "*" and "+" as well as object class references prefixed with an at sign, for example "@person". The included attributes will be published using the "includedAttributes" operational attribute as a single LDIF value rather like the "changes" attribute. For modify and modifyDN operations the included attributes will be taken from the entry before any changes were applied.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "ecl-include" property.
-
getEclIncludeForDeletes
SortedSet<String> getEclIncludeForDeletes()
Gets the "ecl-include-for-deletes" property.Specifies a list of attributes which should be published with every delete operation change log entry, in addition to those specified by the "ecl-include" property.
This property provides a means for applications to archive entries after they have been deleted. See the description of the "ecl-include" property for further information about how the included attributes are published.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "ecl-include-for-deletes" property.
-
isEnabled
boolean isEnabled()
Gets the "enabled" property.Indicates whether the Replication Domain is enabled in the server.
If a Replication Domain is not enabled, then its contents will not be replicated.
Default value:
true
- Returns:
- Returns the value of the "enabled" property.
-
getFractionalExclude
SortedSet<String> getFractionalExclude()
Gets the "fractional-exclude" property.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.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "fractional-exclude" property.
-
getFractionalInclude
SortedSet<String> getFractionalInclude()
Gets the "fractional-include" property.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.
Default value is undefined
- Returns:
- Returns an unmodifiable set containing the values of the "fractional-include" property.
-
getGroupId
String getGroupId()
Gets the "group-id" property.Specifies the unique identifier of the group in which the directory server belongs.
Directory servers are typically grouped according to their physical location, such as a rack or data center. Servers will prefer connecting to other servers within the same group.
Default value is inherited from another property
- Returns:
- Returns the value of the "group-id" property.
-
getGroupIdFailoverOrder
String getGroupIdFailoverOrder()
Gets the "group-id-failover-order" property.Comma separated list of group-ids, highest priority first, controlling how the server successively fail over between groups.
Servers pertaining to the group ID of the current server are first tried. If none respond, then servers pertaining to the first group ID in the list are tried. If none respond, then servers pertaining to the second group ID in the list are tried, etc. Finally, when no servers from the listed groups respond, then all the remaining servers are considered.
Default value is inherited from another property
- Returns:
- Returns the value of the "group-id-failover-order" property.
-
getHeartbeatInterval
Long getHeartbeatInterval()
Gets the "heartbeat-interval" property.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.
Default value is inherited from another property
- Returns:
- Returns the value of the "heartbeat-interval" property.
-
getInitializationWindowSize
Integer getInitializationWindowSize()
Gets the "initialization-window-size" property.Specifies the window size that this directory server may use when communicating with remote Directory Servers for initialization.
Default value is inherited from another property
- Returns:
- Returns the value of the "initialization-window-size" property.
-
getIsolationPolicy
ReplicationSynchronizationProviderCfgDefn.IsolationPolicy getIsolationPolicy()
Gets the "isolation-policy" property.Specifies the behavior of the directory server when writing to replicated data while none of the configured Replication Servers are available.
Default value is inherited from another property
- Returns:
- Returns the value of the "isolation-policy" property.
-
isLogChangenumber
Boolean isLogChangenumber()
Gets the "log-changenumber" property.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.
Default value is inherited from another property
- Returns:
- Returns the value of the "log-changenumber" property.
-
getReferralsUrl
SortedSet<String> getReferralsUrl()
Gets the "referrals-url" property.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.
Default value is inherited from another property
- Returns:
- Returns an unmodifiable set containing the values of the "referrals-url" property.
-
getReplicationPurgeDelay
Long getReplicationPurgeDelay()
Gets the "replication-purge-delay" property.Minimum lifetime of changelog data and old replication meta-data in directory entries. Changelog data and replication meta-data older than this setting is eligible to be removed.
After the purge delay has passed, the server removes old changelog data over time when it applies new updates. Replication meta-data is stored in changed directory entries. The server removes old replication meta-data either when the entry is next modified, or by a dedicated purge task, whichever happens first. The server temporarily stops removing old data when it has been unable to process updates for an extended period of time. For example, the server stops removing data when the server is offline, and when it cannot access other servers due to a network partition. Once old data is removed, the server can no longer use it for replication. Changelog and replication meta-data older than the purge delay must therefore be considered stale. Backups must be newer than the purge delay, including the time it takes to restore a backup.
Default value is inherited from another property
- Returns:
- Returns the value of the "replication-purge-delay" property.
-
isSolveConflicts
Boolean isSolveConflicts()
Gets the "solve-conflicts" property.Indicates if this server solves conflict.
This boolean indicates if this domain keeps the historical meta-data necessary to solve conflicts. When set to false the server will not maintain historical meta-data 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.
Default value is inherited from another property
- Returns:
- Returns the value of the "solve-conflicts" property.
-
getSourceAddress
com.forgerock.opendj.util.Host getSourceAddress()
Gets the "source-address" property.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.
Default value is inherited from another property
- Returns:
- Returns the value of the "source-address" property.
-
-