|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplicationDomainCfgClient
A client-side interface for reading and modifying Replication Domain settings.
A Replication Domain comprises of several Directory Servers sharing the same synchronized set of data.
Method Summary | |
---|---|
ManagedObjectDefinition<? extends ReplicationDomainCfgClient,? extends ReplicationDomainCfg> |
definition()
Get the configuration definition associated with this Replication Domain. |
DN |
getBaseDN()
Gets the "base-dn" property. |
long |
getHeartbeatInterval()
Gets the "heartbeat-interval" property. |
ReplicationDomainCfgDefn.IsolationPolicy |
getIsolationPolicy()
Gets the "isolation-policy" property. |
java.util.SortedSet<java.lang.String> |
getReplicationServer()
Gets the "replication-server" property. |
java.lang.Integer |
getServerId()
Gets the "server-id" property. |
int |
getWindowSize()
Gets the "window-size" property. |
void |
setBaseDN(DN value)
Sets the "base-dn" property. |
void |
setHeartbeatInterval(java.lang.Long value)
Sets the "heartbeat-interval" property. |
void |
setIsolationPolicy(ReplicationDomainCfgDefn.IsolationPolicy value)
Sets the "isolation-policy" property. |
void |
setReplicationServer(java.util.Collection<java.lang.String> values)
Sets the "replication-server" property. |
void |
setServerId(int value)
Sets the "server-id" property. |
void |
setWindowSize(java.lang.Integer value)
Sets the "window-size" property. |
Methods inherited from interface org.opends.server.admin.ConfigurationClient |
---|
commit, properties |
Method Detail |
---|
ManagedObjectDefinition<? extends ReplicationDomainCfgClient,? extends ReplicationDomainCfg> definition()
definition
in interface ConfigurationClient
DN getBaseDN()
Specifies the base DN of the replicated data.
void setBaseDN(DN value) throws IllegalPropertyValueException, PropertyIsReadOnlyException
Specifies the base DN of the replicated data.
This property is read-only and can only be modified during creation of a Replication Domain.
value
- The value of the "base-dn" property.
IllegalPropertyValueException
- If the new value is invalid.
PropertyIsReadOnlyException
- If this Replication Domain is not being initialized.long getHeartbeatInterval()
Specifies the heart-beat interval that the Directory Server will use when communicating with Replication Servers.
The Directory Server expects a regular heart-beat 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.
void setHeartbeatInterval(java.lang.Long value) throws IllegalPropertyValueException
Specifies the heart-beat interval that the Directory Server will use when communicating with Replication Servers.
The Directory Server expects a regular heart-beat 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.
value
- The value of the "heartbeat-interval" property.
IllegalPropertyValueException
- If the new value is invalid.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.
void setIsolationPolicy(ReplicationDomainCfgDefn.IsolationPolicy value) throws IllegalPropertyValueException
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.
value
- The value of the "isolation-policy" property.
IllegalPropertyValueException
- If the new value is invalid.java.util.SortedSet<java.lang.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
void setReplicationServer(java.util.Collection<java.lang.String> values) throws IllegalPropertyValueException
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
values
- The values of the "replication-server" property.
IllegalPropertyValueException
- If one or more of the new values are invalid.java.lang.Integer 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.
void setServerId(int value) throws IllegalPropertyValueException, PropertyIsReadOnlyException
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.
This property is read-only and can only be modified during creation of a Replication Domain.
value
- The value of the "server-id" property.
IllegalPropertyValueException
- If the new value is invalid.
PropertyIsReadOnlyException
- If this Replication Domain is not being initialized.int getWindowSize()
Specifies the window size that the Directory Server will use when communicating with Replication Servers.
void setWindowSize(java.lang.Integer value) throws IllegalPropertyValueException
Specifies the window size that the Directory Server will use when communicating with Replication Servers.
value
- The value of the "window-size" property.
IllegalPropertyValueException
- If the new value is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |