com.esri.arcgis.geodatabase
Interface IReplica2

All Superinterfaces:
IReplica, Serializable
All Known Implementing Classes:
Replica

public interface IReplica2
extends IReplica, Serializable

Provides access to members that get information about a replica.

Product Availability

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


Method Summary
 int getAccessType()
          Replica access type.
 IEnumReplicaDataset getAllReplicaDatasets()
          The replica datasets for the replica.
 IEnumReplicaLog getLog()
          Replica log associated with this replica.
 int getMyGenerationNumber()
          The generation number for a replica.
 int getReconcilePolicyType()
          Replica reconcile policy.
 String getReplicaReceivingVersion()
          The replica version that recieves the changes.
 int getReplicaState()
          The replica state.
 String getSibConnectionString()
          The sib connection string for a replica.
 int getSibGenerationNumber()
          The generation number for a replica's sibling.
 int getSibMyGenNumber()
          The generation number that the sibling thinks is my generation number.
 void init2(IGPReplica gPReplica, IWorkspace targetWorkspace)
          Initializes a replica from a gpreplica.
 boolean isHasConflicts()
          Indicates if the replica sync has conflicts.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IReplica
getConnectionInfo, getDescription, getName, getOwner, getParentID, getReplicaDatasets, getReplicaDate, getReplicaGuid, getReplicaID, getReplicaRole, getVersion
 

Method Detail

getMyGenerationNumber

int getMyGenerationNumber()
                          throws IOException,
                                 AutomationException
The generation number for a replica.

Product Availability

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

Returns:
The myGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibGenerationNumber

int getSibGenerationNumber()
                           throws IOException,
                                  AutomationException
The generation number for a replica's sibling.

Product Availability

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

Returns:
The sibGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibMyGenNumber

int getSibMyGenNumber()
                      throws IOException,
                             AutomationException
The generation number that the sibling thinks is my generation number.

Product Availability

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

Returns:
The sibMyGen
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLog

IEnumReplicaLog getLog()
                       throws IOException,
                              AutomationException
Replica log associated with this replica.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumReplicaLog
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAllReplicaDatasets

IEnumReplicaDataset getAllReplicaDatasets()
                                          throws IOException,
                                                 AutomationException
The replica datasets for the replica.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumReplicaDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init2

void init2(IGPReplica gPReplica,
           IWorkspace targetWorkspace)
           throws IOException,
                  AutomationException
Initializes a replica from a gpreplica.

Product Availability

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

Parameters:
gPReplica - A reference to a com.esri.arcgis.geodatabase.IGPReplica (in)
targetWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAccessType

int getAccessType()
                  throws IOException,
                         AutomationException
Replica access type.

Product Availability

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

Returns:
A com.esri.arcgis.geodatabase.esriReplicaAccessType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReconcilePolicyType

int getReconcilePolicyType()
                           throws IOException,
                                  AutomationException
Replica reconcile policy.

Product Availability

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

Returns:
A com.esri.arcgis.geodatabase.esriReplicaReconcilePolicyType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasConflicts

boolean isHasConflicts()
                       throws IOException,
                              AutomationException
Indicates if the replica sync has conflicts.

Product Availability

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

Returns:
The hasConflicts
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaReceivingVersion

String getReplicaReceivingVersion()
                                  throws IOException,
                                         AutomationException
The replica version that recieves the changes.

Product Availability

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

Returns:
The replicaReceivingVersion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getReplicaState

int getReplicaState()
                    throws IOException,
                           AutomationException
The replica state.

Product Availability

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

Returns:
A com.esri.arcgis.geodatabase.esriReplicaState constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSibConnectionString

String getSibConnectionString()
                              throws IOException,
                                     AutomationException
The sib connection string for a replica.

Product Availability

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

Returns:
The connectionString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.