com.esri.arcgis.geodatabasedistributed
Class ReplicationAgent

java.lang.Object
  extended by com.esri.arcgis.geodatabasedistributed.ReplicationAgent
All Implemented Interfaces:
IReplicationAgent, IReplicationAgent2, IReplicationAgentCancelControl, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class ReplicationAgent
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IReplicationAgent, IReplicationAgent2, IReplicationAgentCancelControl

COM Class 'ReplicationAgent'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabaseDistributed.olb'

Description 'A class used to perform replica operations.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabasedistributed.IReplicationAgent2
IID, IIDfc1d0cbb_38ee_44b7_be6e_80049e06f855, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabasedistributed.IReplicationAgent
IIDab9f2c3d_9298_480b_a57c_4afcc8d7c498
 
Fields inherited from interface com.esri.arcgis.geodatabasedistributed.IReplicationAgentCancelControl
IID, IIDfe61bef1_7ae3_45c6_84de_a9d6019a4d77, xxDummy
 
Constructor Summary
ReplicationAgent()
          Constructs a ReplicationAgent using ArcGIS Engine.
ReplicationAgent(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicationAgent theReplicationAgent = (ReplicationAgent) obj;
 
Method Summary
 void addIFeatureProgressListener(IFeatureProgress theListener)
          addIFeatureProgressListener.
 void createReplica(java.lang.String versionName, IGeoDataServer srcGDS, IGeoDataServer destGDS, java.lang.String replicaName, IGPReplicaDescription desc, IGPReplicaOptions repOptions)
          Creates a replica pair in the workspaces bound to the input geodataservers.
 void createReplica2(java.lang.String versionName, IGeoDataServer srcGDS, IGeoDataServer destGDS, java.lang.String replicaName, IGPReplicaDescription desc, IGPReplicaOptions repOptions, java.lang.String layersFolder)
          Creates a replica pair and optionally layers in the workspaces bound to the input geodataservers.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void extractData(java.lang.String versionName, IGeoDataServer srcGDS, IGeoDataServer destGDS, IGPReplicaDescription desc)
          Extracts data from the source geodata server into the destination geodata server.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void release()
          Release a ReplicationAgent.
 void removeIFeatureProgressListener(IFeatureProgress theListener)
          removeIFeatureProgressListener.
 void setCancelTrackerByRef(ITrackCancel rhs1)
          The cancel tracker to inspect for user cancellations.
 boolean synchronizeReplica(IGeoDataServer gds1, IGeoDataServer gds2, IGPReplica rep1, IGPReplica rep2, int pol, int dir, boolean columnLevel)
          Synchronizes a replica pair.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationAgent

public ReplicationAgent()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a ReplicationAgent using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ReplicationAgent

public ReplicationAgent(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicationAgent theReplicationAgent = (ReplicationAgent) obj;

Construct a ReplicationAgent using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ReplicationAgent.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

addIFeatureProgressListener

public void addIFeatureProgressListener(IFeatureProgress theListener)
                                 throws java.io.IOException
addIFeatureProgressListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
Throws:
java.io.IOException - If there are communications problems.

removeIFeatureProgressListener

public void removeIFeatureProgressListener(IFeatureProgress theListener)
                                    throws java.io.IOException
removeIFeatureProgressListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.geodatabase.IFeatureProgress interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a ReplicationAgent.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

createReplica

public void createReplica(java.lang.String versionName,
                          IGeoDataServer srcGDS,
                          IGeoDataServer destGDS,
                          java.lang.String replicaName,
                          IGPReplicaDescription desc,
                          IGPReplicaOptions repOptions)
                   throws java.io.IOException,
                          AutomationException
Creates a replica pair in the workspaces bound to the input geodataservers.

Specified by:
createReplica in interface IReplicationAgent
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

synchronizeReplica

public boolean synchronizeReplica(IGeoDataServer gds1,
                                  IGeoDataServer gds2,
                                  IGPReplica rep1,
                                  IGPReplica rep2,
                                  int pol,
                                  int dir,
                                  boolean columnLevel)
                           throws java.io.IOException,
                                  AutomationException
Synchronizes a replica pair.

Specified by:
synchronizeReplica in interface IReplicationAgent
Parameters:
gds1 - A reference to a com.esri.arcgis.geodatabasedistributed.IGeoDataServer (in)
gds2 - A reference to a com.esri.arcgis.geodatabasedistributed.IGeoDataServer (in)
rep1 - A reference to a com.esri.arcgis.geodatabase.IGPReplica (in)
rep2 - A reference to a com.esri.arcgis.geodatabase.IGPReplica (in)
pol - A com.esri.arcgis.geodatabasedistributed.esriReplicationAgentReconcilePolicy constant (in)
dir - A com.esri.arcgis.geodatabasedistributed.esriReplicaSynchronizeDirection constant (in)
columnLevel - The columnLevel (in)
Returns:
The conflictsDetected
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

extractData

public void extractData(java.lang.String versionName,
                        IGeoDataServer srcGDS,
                        IGeoDataServer destGDS,
                        IGPReplicaDescription desc)
                 throws java.io.IOException,
                        AutomationException
Extracts data from the source geodata server into the destination geodata server.

Specified by:
extractData in interface IReplicationAgent
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)
desc - A reference to a com.esri.arcgis.geodatabase.IGPReplicaDescription (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createReplica2

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

Specified by:
createReplica2 in interface IReplicationAgent2
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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCancelTrackerByRef

public void setCancelTrackerByRef(ITrackCancel rhs1)
                           throws java.io.IOException,
                                  AutomationException
The cancel tracker to inspect for user cancellations.

Specified by:
setCancelTrackerByRef in interface IReplicationAgentCancelControl
Parameters:
rhs1 - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.