GeoData Service ExportReplicaDataChanges method

Exports data changes for a replica.

 

ExportReplicaDataChanges(string ReplicaName, GDSExportOptions ExportOptions,  esriGDSTransportType TransportType, esriExportGenerationsOption GenerationsToExport,  boolean SwitchRole)

 

Parameter

Description

ReplicaName

 

Name of the replica.

ExportOptions

 

Defines the output of the method. This includes the outut format and whether or not the output will be compressed. See GDSExportOptions for more information.
 

TransportType

 

Defines how the client will be able to retrieve the results.  See esriGDSTransportType for more information.
 

GenerationsToExport

 

Specifies what data changes to export.  You may choose to export only unacknowledged data changes, only new data changes, all data changes, or no data changes. You would export no data changes if you were interested in switching roles (see below). See esriExportGenerationsOptions for more information.
 

SwitchRole

 

Set the SwitchRole parameter to true if after exporting the data changes, you want to start receiving changes from the relative replica. When set to true, the source replica transitions from a data sender to a data receiver upon export. When the relative replica successfully imports this delta file, it transitions from a data receiver to a data sender.  See the ImportReplicaDataChanges method for more information.
 

 

Return Value

 

A GDSData object.

 

Remarks

 

The process of synchronizing two replicas involves the following steps:

• Exporting changes from GeoDataServer / Replica 1.

• Importing them into GeoDataServer / Replica 2.

• Exporting an acknowledgement from GeoDataServer / Replica 2 and importing it into 1.
 

The above steps send changes in one direction – from replica 1 to replica 2. In TwoWay synchronization changes are also sent in the opposite direction. The bullets above correspond to the methods ExportReplicaDataChanges, ImportReplicaDataChanges, ExportAcknowledgement and ImportAcknowledgement.  The method ReExportReplicaDataChanges is used to re-export changes that were already sent.  ImportReplicaDataChanges can also be used to import XML diff grams that are not part of a replica.

 

Examples

C#

VB.NET

Java