com.esri.arcgis.geodatabasedistributed
Interface IReplicationAgent2

All Superinterfaces:
IReplicationAgent, Serializable
All Known Implementing Classes:
ReplicationAgent

public interface IReplicationAgent2
extends IReplicationAgent, Serializable

Provides access to replica operations.

Remarks

The IReplicationAgent2 interface provides methods to create and synchronize replicas and extract data in connected environments. To perform these operations in a disconnected environment see methods on the IGeoDataServer2 interface.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void createReplica2(String versionName, IGeoDataServer srcGDS, IGeoDataServer destGDS, String replicaName, IGPReplicaDescription desc, IGPReplicaOptions repOptions, String layersFolder)
          Creates a replica pair and optionally layers in the workspaces bound to the input geodataservers.
 
Methods inherited from interface com.esri.arcgis.geodatabasedistributed.IReplicationAgent
createReplica, extractData, synchronizeReplica
 

Method Detail

createReplica2

void createReplica2(String versionName,
                    IGeoDataServer srcGDS,
                    IGeoDataServer destGDS,
                    String replicaName,
                    IGPReplicaDescription desc,
                    IGPReplicaOptions repOptions,
                    String layersFolder)
                    throws IOException,
                           AutomationException
Creates a replica pair and optionally layers in the workspaces bound to the input geodataservers.

Remarks

The IReplicationAgent2::CreateReplica2 method is used to create replicas in a connected environment. This method may be used to create check-out replicas, two way replicas, or one way replicas. To create replicas in a disconnected environement please see the IGeodataserver::CreateReplica method for more information

This method requires two input geodataserver objects,a srcGDS and a destGDS. The replicas will be created in the geodatabases represented by the input geodataserver objects. The srcGDS will host the parent replica, and the destGDS will host the child replica in the replica pair. See the GeoDataServer2 coclass for more information. The ReplicaName is a string that uniquely identifies the replica.

The versionName is the version on the geodatabase represented by the srcGDS from which the replica will be created.

The desc parameter defines the data which will be replicated. See the GPReplicaDescription coclass for more information.

The repOptions parameter defines replica options such as the replica access type. See the GPReplicaOptions coclass for more information.

The optional layersFolder parameter defines the location where layer files referencing the destGDS will be created.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
versionName - The versionName (in)
srcGDS - A reference to a com.esri.arcgis.geodatabasedistributed.IGeoDataServer (in)
destGDS - A reference to a com.esri.arcgis.geodatabasedistributed.IGeoDataServer (in)
replicaName - The replicaName (in)
desc - A reference to a com.esri.arcgis.geodatabase.IGPReplicaDescription (in)
repOptions - A reference to a com.esri.arcgis.geodatabase.IGPReplicaOptions (in)
layersFolder - The layersFolder (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.