|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesGDB.DataServerManager
public class DataServerManager
Object to administer a Data Server.
The DataServerManager object allows you to connect to a Database Server and administer Database Servers. To be able to connect to a Database Server using this component, you must either be an administrator of that server, or you must be a user that an administrator has added to the server with the appropriate permission levels.
The Data Servers currently supported are Personal ArcSDE and Workgroup ArcSDE for Microsoft SQL Server Express Edition (2005 and 2008).
Constructor Summary | |
---|---|
DataServerManager()
Constructs a DataServerManager using ArcGIS Engine. |
|
DataServerManager(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DataServerManager theDataServerManager = (DataServerManager) obj; |
Method Summary | |
---|---|
void |
analyze(String gdbName)
Updates the statistics for a Geodatabase. |
void |
attachGeodatabase(String dbName,
String dataFileName,
String logFileName)
Attachs an existing database to a server. |
boolean |
backupGeodatabase(String gdbName,
String backupFileName,
String backupName,
String description)
Performs a full backup on the specified Geodatabase. |
void |
connect()
Connects to an initialized Data Server. |
void |
continueServer()
Continues the server. |
String |
createConnectionFile(String pathName,
String serverName)
Create a Data Server connection file. |
void |
createGeodatabase(String gdbName,
String gdbFileName,
int gdbFileSize,
String logFileName,
int logFileSize)
Creates a new Geodatabase. |
void |
createLogin(String loginName,
boolean isAdministrator)
Creates a new login. |
IWorkspaceName |
createWorkspaceName(String gdbName,
String versionPropName,
Object versionSpecifier)
Creates a Workspace Name object to the Geodatabase. |
void |
deleteGeodatabase(String gdbName)
Deletes a Geodatabase. |
void |
deleteLogin(String loginName)
Deletes a login. |
void |
detachGeodatabase(String dbName)
Detachs a database from a server. |
void |
disconnect()
Disconnects from the Data Server. |
boolean |
equals(Object o)
Compare this object with another |
int |
getAvailableMemory()
The total available memory (MB). |
static String |
getClsid()
getClsid. |
int |
getConnectedUsers(String dbName)
Gets active users. |
int |
getDataServerClass()
The server class. |
int |
getDataServerType()
The type of data server. |
void |
getDBProperties(String dbName,
String[] status,
int[] dbSize,
String[] owner,
Object[] createDate,
Object[] dbBackup)
Returns various properties on a Database. |
void |
getFileProperties(String dbName,
String[] dataName,
String[] dataPhysicalName,
int[] dataFileSize,
String[] logName,
String[] logPhysicalName,
int[] logFileSize)
Return various properties on a database file. |
String |
getGeodatabaseName(String dataFileName)
Returns the Database name from the database file. |
IEnumBSTR |
getGeodatabaseNames()
Returns a list of Geodatabse names. |
void |
getLogins(IEnumBSTR[] loginNames,
IEnumBSTR[] dbNames,
IEnumBSTR[] loginTypes,
IEnumBSTR[] languages)
Returns a list logins and associated information. |
String |
getProductName()
The product name. |
String |
getProductVersion()
The product version. |
void |
getServerAdministrators(IEnumBSTR[] userNames)
Gets a list of server administrators. |
String |
getServerName()
The data server name. |
int |
getServerStatus()
The status of the server. |
void |
getUsersByPermissionType(String dbName,
int permission,
IEnumBSTR[] userNames)
Get Users in by the Permission type. |
int |
hashCode()
the hashcode for this object |
void |
initFromFile(String gdsFileName)
Initializes a saved connection to the GIS Data Server. |
boolean |
isConnected()
Indicates whether the server is connected or not. |
boolean |
isConnectedUserAdministrator()
Indicates whether the connected user is an administrator or not. |
boolean |
isHasControlPermissions()
Indicates whether the user has permissions to control the service. |
void |
isSimpleRecoveryModel(String gdbName,
boolean[] isSimpleRecoveryModel)
Returns whether the Geodatabase is in simple recovery model or not. |
void |
modifyGeodatabaseSecurity(String dbName,
String loginName,
int permission)
Modify a login's database security. |
void |
modifyLoginSecurity(String loginName,
boolean isAdministrator)
Modify a login's server security. |
void |
pauseServer()
Pauses the server. |
void |
rebuildIndices(String gdbName)
Rebuilds the indices on all tables in a Geodatabase. |
void |
restoreGeodatabase(String gdbName,
String backupFileName,
String dbFilePath)
Restores a backup for the specified Geodatabase. |
void |
setGeodatabaseToSimpleRecoveryModel(String gdbName)
Sets a Geodatabase to simple recovery model. |
void |
setServerName(String serverName)
The data server name. |
void |
shrinkGeodatabase(String gdbName)
Shrinks the size of a Geodatabase and frees up unused space. |
void |
startServer()
Starts the server. |
void |
stopServer()
Stops the server. |
void |
upgradeGeoDatabase(String gdbName)
Upgrades a Geodatabase. |
void |
upgradeSDESchema(String gdbName)
Upgrades the SDE schema. |
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 |
---|
public DataServerManager() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DataServerManager(Object obj) throws IOException
DataServerManager theDataServerManager = (DataServerManager) obj;
obj
to DataServerManager
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
connect
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void disconnect() throws IOException, AutomationException
This function disconnects from a Database Server.
disconnect
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setServerName(String serverName) throws IOException, AutomationException
setServerName
in interface IDataServerManager
serverName
- The serverName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getServerName
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
initFromFile
in interface IDataServerManager
gdsFileName
- The gdsFileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String createConnectionFile(String pathName, String serverName) throws IOException, AutomationException
Creates a Database Server connection file (.gds).
createConnectionFile
in interface IDataServerManager
pathName
- The pathName (in)serverName
- The serverName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isConnected() throws IOException, AutomationException
This method returns whether you are currenrtly connected to the database server.
isConnected
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDataServerType() throws IOException, AutomationException
This method returns the type of the database server (DataServerType).
getDataServerType
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getProductName() throws IOException, AutomationException
This method returns the product name for the underlying database server. For example; “Microsoft SQL Server Express Edition”.
getProductName
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getProductVersion() throws IOException, AutomationException
This return returns the version of the underlying database server. For example; “9.00.1399.06”.
getProductVersion
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getAvailableMemory
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDataServerClass() throws IOException, AutomationException
getDataServerClass
in interface IDataServerManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createGeodatabase(String gdbName, String gdbFileName, int gdbFileSize, String logFileName, int logFileSize) throws IOException, AutomationException
The CreateGeodatabase method creates a geodatabase with the supplied name, corresponding to the specified .mdf file.
The gdbName and gdbFileName arguments must have the same name, geodatabases with different names from the .mdf file are not currently supported. The gdbFileName argument should contain the complete folder path to the location in which the .mdf file will be created. It should also correspond with the name of the geodatabase to be created and should have the ".mdf" suffix specified.
gdbFileSize is in megabytes and is an optional parameter. If you specify 0, the size of the database created will be set to the data server's defaults (which is generally around 7 MBs).
logFileName and logFileSize are also optional parameters. If you specify an empty string for the logFileName or 0 for the logFileSize, they will be set to the data server's defaults. If an empty string is supplied for logFileName, a file will be created in the same directory as that specified for the gdbFileName, but will conform to the following: gdbFileName & "_log.LDF". If the logFileName argument is supplied, a valid size (greater than 0), must be supplied for the logFileSize. The logFileName may have a different name and be created within a different location than the .mdf file, however, this is generally not recommeded.
You must be a server administrator to perform this operation.
After a geodatabase has been created, all server administrators, including the user who created the geodatabase will have access to it. Other users will need to be granted permission to the geodatabase.
createGeodatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)gdbFileName
- The gdbFileName (in)gdbFileSize
- The gdbFileSize (in)logFileName
- The logFileName (in)logFileSize
- The logFileSize (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteGeodatabase(String gdbName) throws IOException, AutomationException
Deletes a Geodatabase.
You must be a server administrator to perform this operation.
deleteGeodatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createLogin(String loginName, boolean isAdministrator) throws IOException, AutomationException
The method creates a login on the server. Login names are Microsoft Windows logins.
If the isAdministrator parameter is set to true, the new user is made an adminstrator and has full administration rights, such as creating or deleting Geodatabases, adding users, etc.
You must be a server administrator to perform this operation.
createLogin
in interface IDataServerManagerAdmin
loginName
- The loginName (in)isAdministrator
- The isAdministrator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void modifyLoginSecurity(String loginName, boolean isAdministrator) throws IOException, AutomationException
This method allows you to make an existing login an administrator or not.
You must be an server adminstrator to execute this method.
modifyLoginSecurity
in interface IDataServerManagerAdmin
loginName
- The loginName (in)isAdministrator
- The isAdministrator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void modifyGeodatabaseSecurity(String dbName, String loginName, int permission) throws IOException, AutomationException
This method modifies the permission type of a user at the Geodatabase level. Permissions include the read access to the data, read\write access including the ability to create data in the Geodatabase or read\write access with the ability to perform administrator tasks. You must be a server administrator or a user with Geodatabase administrator permissions to use this method.
modifyGeodatabaseSecurity
in interface IDataServerManagerAdmin
dbName
- The dbName (in)loginName
- The loginName (in)permission
- A com.esri.arcgis.datasourcesGDB.esriGeodatabasePermissionsType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteLogin(String loginName) throws IOException, AutomationException
This method deletes a login from a database server. In order to delete a user or login, the user cannot own any data within the Database Server.
You must be a server administrator to perform this operation.
deleteLogin
in interface IDataServerManagerAdmin
loginName
- The loginName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumBSTR getGeodatabaseNames() throws IOException, AutomationException
This method returns a list of Geodatabases on the Database Server.
getGeodatabaseNames
in interface IDataServerManagerAdmin
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getLogins(IEnumBSTR[] loginNames, IEnumBSTR[] dbNames, IEnumBSTR[] loginTypes, IEnumBSTR[] languages) throws IOException, AutomationException
This method returns a list of logins and their associated Geodatabase, login types, and default languages.
The login types are: NTUser, NTGroup and Standard. They represent a Windows login, Windows group and a built-in database user, respectively.
getLogins
in interface IDataServerManagerAdmin
loginNames
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)dbNames
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)loginTypes
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)languages
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void detachGeodatabase(String dbName) throws IOException, AutomationException
This method detaches a Geodatabase from a database server. Once detached, the Geodatabase can be re-attached to this or some other database server. A Geodatabase cannot be detached while users are connected to it.
You must be a server administrator to perform this operation.
detachGeodatabase
in interface IDataServerManagerAdmin
dbName
- The dbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void attachGeodatabase(String dbName, String dataFileName, String logFileName) throws IOException, AutomationException
The AttachGeodatabase method allows a Geodatabase to be attached to a Database Server. The dataFileName parameter must contain the full path name to the mdf file to be attached, for example: "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\MyDatabase.mdf". The logFileName is an optional parameter, i.e., you can set it to 0. If not specified, the log file will be re-created. The Geodatabase must first have been detached from a database server, before it can be attached.
You must be a server administrator to perform this operation.
attachGeodatabase
in interface IDataServerManagerAdmin
dbName
- The dbName (in)dataFileName
- The dataFileName (in)logFileName
- The logFileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void upgradeGeoDatabase(String gdbName) throws IOException, AutomationException
This upgrades the ArcSDE and Geodatabase releases to the current release of the installed ArcGIS. Geodatabases must be upgraded in order to take advantage of new functionality when new releases of ArcGIS are available.
upgradeGeoDatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void upgradeSDESchema(String gdbName) throws IOException, AutomationException
The IDataServerManagerAdmin.UpgradeGeoDatabase should be used in place of this method.
upgradeSDESchema
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getGeodatabaseName(String dataFileName) throws IOException, AutomationException
This method returns the name of the Geodatabase inside a database server data file (.mdf). For Database Servers, the Geodatabase name will also be equal to the name of the .mdf file.
getGeodatabaseName
in interface IDataServerManagerAdmin
dataFileName
- The dataFileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean backupGeodatabase(String gdbName, String backupFileName, String backupName, String description) throws IOException, AutomationException
This method backs up a Geodatabase.
You must specify the Geodatabase to be backed up, the name
of the backup file to be created and a name identifying the backup
itself. The description parameter is optional and may be set to
0.
If the Geodatabase has been set to something other than
simple recovery model, then this method will fail and the
IsSimpleRecoveryModel parameter will be set to TRUE.
You must be a server administrator or have geodatabase
admin permissions (esriPermAdmin) to perform this
operation.
backupGeodatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)backupFileName
- The backupFileName (in)backupName
- The backupName (in)description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void restoreGeodatabase(String gdbName, String backupFileName, String dbFilePath) throws IOException, AutomationException
This method restores a Geodatabase from a previous backup.
If the dbFilePath parameter is set to 0, the database will be backed up to it's original location. Specifying the dbFilePath parameter allows you to change the physical location of the data file. In this case, the dbFilePath parameter should specify the full path of the new location, including the new file name.
You must be a server adminstrator to perform this operation.
restoreGeodatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)backupFileName
- The backupFileName (in)dbFilePath
- The dbFilePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isSimpleRecoveryModel(String gdbName, boolean[] isSimpleRecoveryModel) throws IOException, AutomationException
This method returns whether the Geodatabase is in simple recovery model or not.
isSimpleRecoveryModel
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)isSimpleRecoveryModel
- The isSimpleRecoveryModel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeodatabaseToSimpleRecoveryModel(String gdbName) throws IOException, AutomationException
This method sets the Geodatabase to simple recovery model, which is required for backup/restore tools to work. It is not necessary to use this method when calling the BackupGeodatabase or RestoreGeodatabase methods.
Executing this method is only necessary if the geodatabase recovery model option has been modified outside of ArcGIS. Geodatabase created within ArcGIS will always use the simple recovery method.
setGeodatabaseToSimpleRecoveryModel
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isConnectedUserAdministrator() throws IOException, AutomationException
This method returns whether the connected user is an administrator or not.
isConnectedUserAdministrator
in interface IDataServerManagerAdmin
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName createWorkspaceName(String gdbName, String versionPropName, Object versionSpecifier) throws IOException, AutomationException
CreateWorkspaceName takes as input a geodatabase name (gdbName), type of version (versionPropName) and version name (versionSpecifier) and returns a WorkspaceName object to the specified geodatabase and version.
There are 3 valid values for the versionPropName property:
You must initialize the Data Server Manager object before using this method. The Data Server Manager can be initialized through the use of IDataServerManager.InitFromFile or IDataServerManager.ServerName and then calling IDataServerManager.Connect.
createWorkspaceName
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)versionPropName
- The versionPropName (in)versionSpecifier
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getDBProperties(String dbName, String[] status, int[] dbSize, String[] owner, Object[] createDate, Object[] dbBackup) throws IOException, AutomationException
This method returns properties on a Geodatabase. It can only be used on Geodatabases that are attached to a data server. If the dbName parameter does not correspond to a Geodatabase attached to the current data server, an error will be raised.
The dbName input parameter specifies for which database the properites should be returned.
The Status value indicates the status of the Geodatabase; such as Online for an attached Geodatabase or Offline for a detached Geodatabase.
dbSize indicates the size in MB of the Geodatabase.
The Owner value corresponds to the owner who created the Geodatabase and will refer to the OS login, not the database login.
The createDate value is the creation date for the Geodatabase.
The DbBackup parameter is an optional parameter (you can specify 0 as an argument). The DbBackup parameter is the date in which the last backup was performed on this Geodatabase. If no backup has yet been performed on the Geodatabase, this value will be empty.
getDBProperties
in interface IDataServerManagerAdmin
dbName
- The dbName (in)status
- The status (out: use single element array)dbSize
- The dbSize (out: use single element array)owner
- The owner (out: use single element array)createDate
- A Variant (out: use single element array)dbBackup
- A Variant (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getFileProperties(String dbName, String[] dataName, String[] dataPhysicalName, int[] dataFileSize, String[] logName, String[] logPhysicalName, int[] logFileSize) throws IOException, AutomationException
This method returns information about the data files associated with this Geodatabase.
The dbName input parameter specifies for which database the properites should be returned.
The dataName value returns the name of the database, which should match the Geodatabase name, since ArcGIS does not support different database and datafile names. It does not include the .mdf extension.
dataPhysicalName returns the file path for the mdf file storing the Geodatabase. It includes the .mdf extension.
The dataFileSize value returns the size of the file in MBs.
The logName value returns the name of the log file for the database. It does not include the .ldf extension.
logPhysicalName returns the file path for the ldf file storing the database log file. It includes the .ldf extension.
The logFileSize value returns the size of the file in MBs.
getFileProperties
in interface IDataServerManagerAdmin
dbName
- The dbName (in)dataName
- The dataName (out: use single element array)dataPhysicalName
- The dataPhysicalName (out: use single element array)dataFileSize
- The dataFileSize (out: use single element array)logName
- The logName (out: use single element array)logPhysicalName
- The logPhysicalName (out: use single element array)logFileSize
- The logFileSize (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void analyze(String gdbName) throws IOException, AutomationException
This method performs an analyze operation on the specified Geodatabase which updates all index statistics.
Perform this periodically as a regular maintenance operation. Over time index statistics can become stale, especially in a heavily edited Geodatabase. Updating statistics can improve query performance.
analyze
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rebuildIndices(String gdbName) throws IOException, AutomationException
This method rebuilds all the indexes on all existing user tables within a Geodatabase. You must either be a server administrator or a geodatabase administrator to use this method.
Perform this periodically as a regular maintenance operation.
rebuildIndices
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void shrinkGeodatabase(String gdbName) throws IOException, AutomationException
This method frees up unused space in the Geodatabase data file (.mdf).
Perform this periodically as a regular maintenance operation. You must be a server administrator to execute this method.
shrinkGeodatabase
in interface IDataServerManagerAdmin
gdbName
- The gdbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getConnectedUsers(String dbName) throws IOException, AutomationException
This method returns the number of connected users in a particular Geodatabase.
getConnectedUsers
in interface IDataServerManagerAdmin
dbName
- The dbName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getServerAdministrators(IEnumBSTR[] userNames) throws IOException, AutomationException
This method returns a list of users with server administrator permissions on the database server.
getServerAdministrators
in interface IDataServerManagerAdmin
userNames
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getUsersByPermissionType(String dbName, int permission, IEnumBSTR[] userNames) throws IOException, AutomationException
Gets a list of user belonging to a particular permission type (esriGeodatabasePermissionsType).
This method returns a list of users based on permission type.
getUsersByPermissionType
in interface IDataServerManagerAdmin
dbName
- The dbName (in)permission
- A com.esri.arcgis.datasourcesGDB.esriGeodatabasePermissionsType constant (in)userNames
- A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getServerStatus() throws IOException, AutomationException
This method returns the current status of the database service (see esriDataServerStatusType).
getServerStatus
in interface IServiceControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasControlPermissions() throws IOException, AutomationException
This method returns whether a user has permissions to exercise control over the database service.
isHasControlPermissions
in interface IServiceControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopServer() throws IOException, AutomationException
This method stops a database service.
stopServer
in interface IServiceControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startServer() throws IOException, AutomationException
This method starts a database service.
startServer
in interface IServiceControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void pauseServer() throws IOException, AutomationException
This method pauses a database service.
pauseServer
in interface IServiceControl
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void continueServer() throws IOException, AutomationException
This method continues a database service.
continueServer
in interface IServiceControl
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 |