org.opends.server.admin.std.server
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
 void addChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)
          Register to be notified when this Replication Server is changed.
 java.lang.Class<? extends ReplicationServerCfg> configurationClass()
          Gets the configuration class associated with this Replication Server.
 int getQueueSize()
          Gets the "queue-size" property.
 java.lang.String getReplicationDBDirectory()
          Gets the "replication-db-directory" property.
 int getReplicationPort()
          Gets the "replication-port" property.
 long getReplicationPurgeDelay()
          Gets the "replication-purge-delay" property.
 java.util.SortedSet<java.lang.String> getReplicationServer()
          Gets the "replication-server" property.
 int getReplicationServerId()
          Gets the "replication-server-id" property.
 int getWindowSize()
          Gets the "window-size" property.
 void removeChangeListener(ConfigurationChangeListener<ReplicationServerCfg> listener)
          Deregister an existing Replication Server configuration change listener.
 
Methods inherited from interface org.opends.server.admin.Configuration
dn
 

Method Detail

configurationClass

java.lang.Class<? extends ReplicationServerCfg> configurationClass()
Gets the configuration class associated with this Replication Server.

Specified by:
configurationClass in interface Configuration
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.

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

java.lang.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

java.util.SortedSet<java.lang.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

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.

getWindowSize

int getWindowSize()
Gets the "window-size" property.

Specifies the window size that the Replication Server uses when communicating with other Replication Servers.

Returns:
Returns the value of the "window-size" property.