Examining and adjusting database replication settings
You examine and adjust the replication settings of a database through the NotesReplication and NotesReplicationEntry classes.
Each database object has exactly one associated NotesReplication object, accessible through the ReplicationInfo property in NotesDatabase. NotesReplication has the following properties:
Property |
Data type |
Description |
---|---|---|
Abstract |
Boolean |
(Read-write) True to truncate large documents and remove attachments. |
CutoffDate |
Variant of type DATE |
(Read-only) Today's date minus the cutoff interval. |
CutoffDelete |
Boolean |
(Read-write) True to automatically delete documents older than the cutoff date. |
CutoffInterval |
Long |
(Read-write) Number of days after which documents are automatically deleted if CutoffDelete is True. |
Disabled |
Boolean |
(Read-write) True to disable replication. |
DontSendLocalSecurityUpdates |
Boolean |
(Read-write) True to not send local security (encryption) updates. |
IngnoreDeletes |
Boolean |
(Read-write) True to not replicate outgoing deletions. |
IgnoreDestDeletes |
Boolean |
(Read-write) True to not replicate incoming deletions. |
Priority |
Long |
(Read-write) Replication priority. |
The following methods are available:
- ClearHistory clears the replication history.
- Reset enables you to reset the replication properties of a database to their last saved values.
- Save must be called to preserve any changes you make to the replication properties.
A database has any number of NotesReplicationEntry objects, accessible through the GetEntry method of NotesReplication. A replication entry describes the replication settings for a pair of servers, of which one is the source and the other is the destination. The following properties are available:
Property |
Data type |
Description |
---|---|---|
Destination |
String |
(Read-only) Name of the destination server. |
Formula |
String |
(Read-write) The replication formula. |
IsIncludeACL |
Boolean |
(Read-write) True to include the ACL. |
IsIncludeAgents |
Boolean |
(Read-write) True to include agents. |
IsIncludeDocuments |
Boolean |
(Read-write) True to include documents. |
IsIncludeForms |
Boolean |
(Read-write) True to include forms. |
IsIncludeFormulas |
Boolean |
(Read-write) True to include the replication formula. |
Source |
String |
(Read-only) Name of the source server. |
Views |
String |
(Read-write) The views to be included. |
The following methods are available:
- Remove removes the entry.
- Save must be called to preserve any changes you make to the replication entry.