|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGeoDataServerInit
Provides access to members that support initializing a GeoDataServer.
The IGeoDataServerInit interface is used to initialize the GeoDataServer coclass. The coclass must be intialized before any of the other interfaces in the coclass can be used. GeoDataServers that are already published in ArcGIS for Server can also be accessed using the GISClient or Server libraries depending on the type of connection.
Method Summary | |
---|---|
int |
getMaxRecordCount()
The maximum number of records returned for query results. |
String |
getPhysicalOutputDirectory()
The physical directory for output files. |
String |
getVirtualOutputDirectory()
The virtual directory for output files. |
void |
initFromConnectionString(String connectionString)
Initializes a GeoDataServer object from a connection string to a geodatabase. |
void |
initFromFile(String file)
Initializes a GeoDataServer object from a geodatabase or an sde connection file (*.sde). |
void |
initFromMap(String filePath)
Initializes a GeoDataServer object with a map document. |
void |
initWithWorkspace(IWorkspace pWorkspace)
Initializes a GeoDataServer object with a workspace. |
void |
setMaxRecordCount(int count)
The maximum number of records returned for query results. |
void |
setPhysicalOutputDirectory(String dirPath)
The physical directory for output files. |
void |
setVirtualOutputDirectory(String dirPath)
The virtual directory for output files. |
Method Detail |
---|
void initFromMap(String filePath) throws IOException, AutomationException
The InitFromMap method uses a file system path to an ArcMap document to initialize the GeoDataServer. The document must contain layers or tables from a single geodatabase connection.
filePath
- The filePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void initFromFile(String file) throws IOException, AutomationException
The InitFromFile method uses a file system path to a geodatabase or an ArcSDE geodatabase connection file to initialize the GeoDataServer.
file
- The file (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void initFromConnectionString(String connectionString) throws IOException, AutomationException
connectionString
- The connectionString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void initWithWorkspace(IWorkspace pWorkspace) throws IOException, AutomationException
The InitWithWorkspace method initializes a GeoDataServer object with a workspace object for the geodatabase.
pWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPhysicalOutputDirectory(String dirPath) throws IOException, AutomationException
dirPath
- The dirPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getPhysicalOutputDirectory() throws IOException, AutomationException
The PhysicalOutputDirectory method represents the physical directory for output files. This is a path to a local directory where files are placed when executing operations on a GeoDataServer. If the GeoDataServer is running inside ArcGIS for Server, this refers to a directory on the server machine. This value is set when configuring a geodata service inside ArcGIS for Server.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVirtualOutputDirectory(String dirPath) throws IOException, AutomationException
dirPath
- The dirPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getVirtualOutputDirectory() throws IOException, AutomationException
The VirtualOutputDirectory property refers to a virtual directory where output files are placed when executing operations on a GeoDataServer. This value is set when configuring a geodata service inside ArcGIS for Server.
The VirtualOutputDirectory should reference the same directory as the PhysicalOutputDirectory.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxRecordCount() throws IOException, AutomationException
The MaxRecordCount property represents the maximum number of records returned for a query result. This property is used when calling the IGeoDataServer::TableSearch method.
You can use this property to prevent large queries from being executed against the GeoDataServer. For example, if 130,000 rows satisfy the query and the MaxRecordCount is 100,000, only 100,000 records will be returned. For GeoDataServers published with ArcGIS for Server, this value is set by the administrator when the GeoDataServer is created. For locally initialized GeoDataServers, this value can be reset at any time.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxRecordCount(int count) throws IOException, AutomationException
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |