Interface ReplicationServerCfg
-
- All Superinterfaces:
Configuration
public interface ReplicationServerCfg extends Configuration
A server-side interface for querying Replication Server settings.Replication Servers publish updates to Directory Servers within a Replication Domain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)Register to be notified when this Replication Server is changed.Class<? extends ReplicationServerCfg>configurationClass()Gets the configuration class associated with this Replication Server.longgetAssuredTimeout()Gets the "assured-timeout" property.intgetCipherKeyLength()Gets the "cipher-key-length" property.StringgetCipherTransformation()Gets the "cipher-transformation" property.intgetDegradedStatusThreshold()Gets the "degraded-status-threshold" property.intgetGroupId()Gets the "group-id" property.longgetMonitoringPeriod()Gets the "monitoring-period" property.intgetQueueSize()Gets the "queue-size" property.StringgetReplicationDBDirectory()Gets the "replication-db-directory" property.intgetReplicationPort()Gets the "replication-port" property.longgetReplicationPurgeDelay()Gets the "replication-purge-delay" property.SortedSet<String>getReplicationServer()Gets the "replication-server" property.intgetReplicationServerId()Gets the "replication-server-id" property.InetAddressgetSourceAddress()Gets the "source-address" property.intgetWeight()Gets the "weight" property.intgetWindowSize()Gets the "window-size" property.booleanisComputeChangeNumber()Gets the "compute-change-number" property.booleanisConfidentialityEnabled()Gets the "confidentiality-enabled" property.voidremoveChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)Deregister an existing Replication Server configuration change listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
-
-
-
Method Detail
-
configurationClass
Class<? extends ReplicationServerCfg> configurationClass()
Gets the configuration class associated with this Replication Server.- Specified by:
configurationClassin interfaceConfiguration- Returns:
- Returns the configuration class associated with this Replication Server.
-
addChangeListener
void addChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)
Register to be notified when this Replication Server is changed.- Parameters:
listener- The Replication Server configuration change listener.
-
removeChangeListener
void removeChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)
Deregister an existing Replication Server configuration change listener.- Parameters:
listener- The Replication Server configuration change listener.
-
getAssuredTimeout
long getAssuredTimeout()
Gets the "assured-timeout" property.The timeout value when waiting for assured mode acknowledgments.
Defines the number of milliseconds that the replication server will wait for assured acknowledgments (in either Safe Data or Safe Read assured sub modes) before forgetting them and answer to the entity that sent an update and is waiting for acknowledgment.
- Returns:
- Returns the value of the "assured-timeout" property.
-
getCipherKeyLength
int getCipherKeyLength()
Gets the "cipher-key-length" property.Specifies the key length in bits for the preferred cipher.
- Returns:
- Returns the value of the "cipher-key-length" property.
-
getCipherTransformation
String getCipherTransformation()
Gets the "cipher-transformation" property.Specifies the cipher for the directory server. The syntax is "algorithm/mode/padding".
The full transformation is required: specifying only an algorithm and allowing the cipher provider to supply the default mode and padding is not supported, because there is no guarantee these default values are the same among different implementations. Some cipher algorithms, including RC4 and ARCFOUR, do not have a mode or padding, and hence must be specified using NONE for the mode field and NoPadding for the padding field. For example, RC4/NONE/NoPadding.
- Returns:
- Returns the value of the "cipher-transformation" property.
-
isComputeChangeNumber
boolean isComputeChangeNumber()
Gets the "compute-change-number" property.Whether the replication server will compute change numbers.
This boolean tells the replication server to compute change numbers for each replicated change by maintaining a change number index database. Changenumbers are computed according to http://tools.ietf.org/html/draft-good-ldap-changelog-04. Note this functionality has an impact on CPU, disk accesses and storage. If changenumbers are not required, it is advisable to set this value to false.
- Returns:
- Returns the value of the "compute-change-number" property.
-
isConfidentialityEnabled
boolean isConfidentialityEnabled()
Gets the "confidentiality-enabled" property.Indicates whether the replication change-log should make records readable only by Directory Server. Throughput and disk space are affected by the more expensive operations taking place.
Confidentiality is achieved by encrypting records on all domains managed by this replication server. Encrypting the records prevents unauthorized parties from accessing contents of LDAP operations. For complete protection, consider enabling secure communications between servers. Change number indexing is not affected by the setting.
- Returns:
- Returns the value of the "confidentiality-enabled" property.
-
getDegradedStatusThreshold
int getDegradedStatusThreshold()
Gets the "degraded-status-threshold" property.The number of pending changes as threshold value for putting a directory server in degraded status.
This value represents a number of pending changes a replication server has in queue for sending to a directory server. Once this value is crossed, the matching directory server goes in degraded status. When number of pending changes goes back under this value, the directory server is put back in normal status. 0 means status analyzer is disabled and directory servers are never put in degraded status.
- Returns:
- Returns the value of the "degraded-status-threshold" property.
-
getGroupId
int getGroupId()
Gets the "group-id" property.The group id for the replication server.
This value defines the group id of the replication server. The replication system of a LDAP server uses the group id of the replicated domain and tries to connect, if possible, to a replication with the same group id.
- Returns:
- Returns the value of the "group-id" property.
-
getMonitoringPeriod
long getMonitoringPeriod()
Gets the "monitoring-period" property.The period between sending of monitoring messages.
Defines the duration that the replication server will wait before sending new monitoring messages to its peers (replication servers and directory servers). Larger values increase the length of time it takes for a directory server to detect and switch to a more suitable replication server, whereas smaller values increase the amount of background network traffic.
- Returns:
- Returns the value of the "monitoring-period" property.
-
getQueueSize
int getQueueSize()
Gets the "queue-size" property.Specifies the number of changes that are kept in memory for each directory server in the Replication Domain.
- Returns:
- Returns the value of the "queue-size" property.
-
getReplicationDBDirectory
String getReplicationDBDirectory()
Gets the "replication-db-directory" property.The path where the Replication Server stores all persistent information.
- Returns:
- Returns the value of the "replication-db-directory" property.
-
getReplicationPort
int getReplicationPort()
Gets the "replication-port" property.The port on which this Replication Server waits for connections from other Replication Servers or Directory Servers.
- Returns:
- Returns the value of the "replication-port" property.
-
getReplicationPurgeDelay
long getReplicationPurgeDelay()
Gets the "replication-purge-delay" property.The time (in seconds) after which the Replication Server erases all persistent information.
- Returns:
- Returns the value of the "replication-purge-delay" property.
-
getReplicationServer
SortedSet<String> getReplicationServer()
Gets the "replication-server" property.Specifies the addresses of other Replication Servers to which this Replication Server tries to connect at startup time.
Addresses must be specified using the syntax: "hostname:port". If IPv6 addresses are used as the hostname, they must be specified using the syntax "[IPv6Address]:port".
- Returns:
- Returns an unmodifiable set containing the values of the "replication-server" property.
-
getReplicationServerId
int getReplicationServerId()
Gets the "replication-server-id" property.Specifies a unique identifier for the Replication Server.
Each Replication Server must have a different server ID.
- Returns:
- Returns the value of the "replication-server-id" property.
-
getSourceAddress
InetAddress 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.
- Returns:
- Returns the value of the "source-address" property.
-
getWeight
int getWeight()
Gets the "weight" property.The weight of the replication server.
The weight affected to the replication server. Each replication server of the topology has a weight. When combined together, the weights of the replication servers of a same group can be translated to a percentage that determines the quantity of directory servers of the topology that should be connected to a replication server. For instance imagine a topology with 3 replication servers (with the same group id) with the following weights: RS1=1, RS2=1, RS3=2. This means that RS1 should have 25% of the directory servers connected in the topology, RS2 25%, and RS3 50%. This may be useful if the replication servers of the topology have a different power and one wants to spread the load between the replication servers according to their power.
- Returns:
- Returns the value of the "weight" property.
-
getWindowSize
int getWindowSize()
Gets the "window-size" property.Specifies the window size that the Replication Server uses when communicating with other Replication Servers.
This option may be deprecated and removed in future releases.
- Returns:
- Returns the value of the "window-size" property.
-
-