com.esri.arcgis.geodatabasedistributed
Class ReplicasExporter

java.lang.Object
  extended by com.esri.arcgis.geodatabasedistributed.ReplicasExporter
All Implemented Interfaces:
IReplicasExporter, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class ReplicasExporter
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IReplicasExporter

Esri Replicas Exporter object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ReplicasExporter()
          Constructs a ReplicasExporter using ArcGIS Engine.
ReplicasExporter(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicasExporter theReplicasExporter = (ReplicasExporter) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IFeatureClass exportReplicasInfo(IWorkspace pFromWS, IWorkspace pDestWS, String fcName, ISpatialReference sR)
          Exports the information for the replicas in a geodatabase into an output feature class.
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

ReplicasExporter

public ReplicasExporter()
                 throws IOException,
                        UnknownHostException
Constructs a ReplicasExporter using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

ReplicasExporter

public ReplicasExporter(Object obj)
                 throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ReplicasExporter theReplicasExporter = (ReplicasExporter) obj;

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

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

exportReplicasInfo

public IFeatureClass exportReplicasInfo(IWorkspace pFromWS,
                                        IWorkspace pDestWS,
                                        String fcName,
                                        ISpatialReference sR)
                                 throws IOException,
                                        AutomationException
Exports the information for the replicas in a geodatabase into an output feature class.

Remarks

The ExportReplicasInfo method exports the geometries of all replicas in a geodatabase into an output feature class. The output feature class has one row in the feature class per replica in the geodatabase. In each row, the replica geometry that is used as a filter for the replica is stored in the shape column. Each replica property is stored in separate columns. These replica properties include information stored about the replica such as the replicas id, owner, name, state, role, the replica type. You can query the footprint for information, such as finding all replicas waiting to receive messages, or all replicas owned by a particular user.

The shape column always stores polygons. If another geometry type (i.e. a point or a line) is used as the replica geometry, it is buffered and the buffer is stored in the footprint feature class. If no replica geometry was used, a polygon covering the entire extent of the replica is stored in the shape column.

The ExportReplicasInfo method returns a feature class. The pFromWS is the workspace of the replica geodatabase. The pDestWS is the destination workspace for the output feature class. The fcName is the name of the output feature class.

The SR parameter defines the spatial reference of the output feature class. If the SR is empty, the spatial reference will be that of the first replica that is something other than unknown. Unknown will be used if the SR parameter is empty and all replicas have an unknown spatial reference. If only some of the replicas have an unknown spatial reference, a null replica geometry is stored for these replicas.


Product Availability

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

Specified by:
exportReplicasInfo in interface IReplicasExporter
Parameters:
pFromWS - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
pDestWS - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
fcName - The fcName (in)
sR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.