|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataServerManager
Provides access to the DataServerManager object.
Use this interface to initialize and connect to a Database Server. Once connected, depending on your permissions level, you can perform administration tasks, get properties of the server and create and open geodatabases on the server.
Method Summary | |
---|---|
void |
connect()
Connects to an initialized Data Server. |
String |
createConnectionFile(String pathName,
String serverName)
Create a Data Server connection file. |
void |
disconnect()
Disconnects from the Data Server. |
int |
getAvailableMemory()
The total available memory (MB). |
int |
getDataServerClass()
The server class. |
int |
getDataServerType()
The type of data server. |
String |
getProductName()
The product name. |
String |
getProductVersion()
The product version. |
String |
getServerName()
The data server name. |
void |
initFromFile(String gdsFileName)
Initializes a saved connection to the GIS Data Server. |
boolean |
isConnected()
Indicates whether the server is connected or not. |
void |
setServerName(String serverName)
The data server name. |
Method Detail |
---|
void connect() throws IOException, AutomationException
This function connects to a Database Server.
The DataServerManager must be initialized by using put_ServerName or InitFromFile. You must already be a user on the server, with the appropriate permissions, in order to connect to it.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void disconnect() throws IOException, AutomationException
This function disconnects from a Database Server.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setServerName(String serverName) throws IOException, AutomationException
serverName
- The serverName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getServerName() throws IOException, AutomationException
The ServerName property is used to return or set the name of the server of the Data Server Manager, for example; “myserver\sqlexpress”. The ServerName value is used with the CreateConnectionFile method. Setting the ServerName property is one method for initializing the DataServerManager before connecting to the Database Server.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void initFromFile(String gdsFileName) throws IOException, AutomationException
This method initializes a Data Server from a Database Server connection file (.gds).
The .gds file is created using the Add Database Server option in ArcCatalog, or the CreateConnectionFile method.
gdsFileName
- The gdsFileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String createConnectionFile(String pathName, String serverName) throws IOException, AutomationException
Creates a Database Server connection file (.gds).
pathName
- The pathName (in)serverName
- The serverName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isConnected() throws IOException, AutomationException
This method returns whether you are currenrtly connected to the database server.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDataServerType() throws IOException, AutomationException
This method returns the type of the database server (DataServerType).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getProductName() throws IOException, AutomationException
This method returns the product name for the underlying database server. For example; “Microsoft SQL Server Express Edition”.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getProductVersion() throws IOException, AutomationException
This return returns the version of the underlying database server. For example; “9.00.1399.06”.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getAvailableMemory() throws IOException, AutomationException
This function returns the available physical RAM on the database server. This is the total memory that is available to the database server, including memory that may already be in use, either by the database server or other applications.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDataServerClass() throws IOException, AutomationException
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 |