com.esri.arcgis.datasourcesGDB
Class DataServerManager

java.lang.Object
  extended by com.esri.arcgis.datasourcesGDB.DataServerManager
All Implemented Interfaces:
IDataServerManager, IDataServerManagerAdmin, IServiceControl, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class DataServerManager
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataServerManager, IDataServerManagerAdmin, IServiceControl

COM Class 'DataServerManager'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesGDB.olb'

Description 'Object to administer a Data Server.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.datasourcesGDB.IDataServerManager
IID, IID737ef71f_3646_49f3_95b9_667259a5d498, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesGDB.IDataServerManagerAdmin
IID, IIDdd374473_eda4_4a24_80f5_0b8c708a453b, xxDummy
 
Fields inherited from interface com.esri.arcgis.datasourcesGDB.IServiceControl
IID, IID271445cb_af1b_483a_a91e_337fa7bf2c0c, xxDummy
 
Constructor Summary
DataServerManager()
          Constructs a DataServerManager using ArcGIS Engine.
DataServerManager(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataServerManager theDataServerManager = (DataServerManager) obj;
 
Method Summary
 void analyze(java.lang.String gdbName)
          Updates the statistics for a Geodatabase.
 void attachGeodatabase(java.lang.String dbName, java.lang.String dataFileName, java.lang.String logFileName)
          Attachs an existing database to a server.
 boolean backupGeodatabase(java.lang.String gdbName, java.lang.String backupFileName, java.lang.String backupName, java.lang.String description)
          Performs a full backup on the specified Geodatabase.
 void connect()
          Connects to an initialized Data Server.
 void continueServer()
          Continues the server.
 java.lang.String createConnectionFile(java.lang.String pathName, java.lang.String serverName)
          Create a Data Server connection file.
 void createGeodatabase(java.lang.String gdbName, java.lang.String gdbFileName, int gdbFileSize, java.lang.String logFileName, int logFileSize)
          Creates a new Geodatabase.
 void createLogin(java.lang.String loginName, boolean isAdministrator)
          Creates a new login.
 IWorkspaceName createWorkspaceName(java.lang.String gdbName, java.lang.String versionPropName, java.lang.Object versionSpecifier)
          Creates a Workspace Name object to the Geodatabase.
 void deleteGeodatabase(java.lang.String gdbName)
          Deletes a Geodatabase.
 void deleteLogin(java.lang.String loginName)
          Deletes a login.
 void detachGeodatabase(java.lang.String dbName)
          Detachs a database from a server.
 void disconnect()
          Disconnects from the Data Server.
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getAvailableMemory()
          The total available memory (MB).
static java.lang.String getClsid()
          getClsid.
 int getConnectedUsers(java.lang.String dbName)
          Gets active users.
 int getDataServerClass()
          The server class.
 int getDataServerType()
          The type of data server.
 void getDBProperties(java.lang.String dbName, java.lang.String[] status, int[] dbSize, java.lang.String[] owner, java.lang.Object[] createDate, java.lang.Object[] dbBackup)
          Returns various properties on a Database.
 void getFileProperties(java.lang.String dbName, java.lang.String[] dataName, java.lang.String[] dataPhysicalName, int[] dataFileSize, java.lang.String[] logName, java.lang.String[] logPhysicalName, int[] logFileSize)
          Return various properties on a database file.
 java.lang.String getGeodatabaseName(java.lang.String dataFileName)
          Returns the Database name from the database file.
 IEnumBSTR getGeodatabaseNames()
          Returns a list of Geodatabse names.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 void getLogins(IEnumBSTR[] loginNames, IEnumBSTR[] dbNames, IEnumBSTR[] loginTypes, IEnumBSTR[] languages)
          Returns a list logins and associated information.
 java.lang.String getProductName()
          The product name.
 java.lang.String getProductVersion()
          The product version.
 void getServerAdministrators(IEnumBSTR[] userNames)
          Gets a list of server administrators.
 java.lang.String getServerName()
          The data server name.
 int getServerStatus()
          The status of the server.
 void getUsersByPermissionType(java.lang.String dbName, int permission, IEnumBSTR[] userNames)
          Get Users in by the Permission type.
 int hashCode()
          the hashcode for this object
 void initFromFile(java.lang.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(java.lang.String gdbName, boolean[] isSimpleRecoveryModel)
          Returns whether the Geodatabase is in simple recovery model or not.
 void modifyGeodatabaseSecurity(java.lang.String dbName, java.lang.String loginName, int permission)
          Modify a login's database security.
 void modifyLoginSecurity(java.lang.String loginName, boolean isAdministrator)
          Modify a login's server security.
 void pauseServer()
          Pauses the server.
 void rebuildIndices(java.lang.String gdbName)
          Rebuilds the indices on all tables in a Geodatabase.
 void release()
          Release a DataServerManager.
 void restoreGeodatabase(java.lang.String gdbName, java.lang.String backupFileName, java.lang.String dbFilePath)
          Restores a backup for the specified Geodatabase.
 void setGeodatabaseToSimpleRecoveryModel(java.lang.String gdbName)
          Sets a Geodatabase to simple recovery model.
 void setServerName(java.lang.String serverName)
          The data server name.
 void shrinkGeodatabase(java.lang.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(java.lang.String gdbName)
          Upgrades a Geodatabase.
 void upgradeSDESchema(java.lang.String gdbName)
          Upgrades the SDE schema.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataServerManager

public DataServerManager()
                  throws java.io.IOException,
                         java.net.UnknownHostException
Constructs a DataServerManager using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DataServerManager

public DataServerManager(java.lang.Object obj)
                  throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataServerManager theDataServerManager = (DataServerManager) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a DataServerManager.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

connect

public void connect()
             throws java.io.IOException,
                    AutomationException
Connects to an initialized Data Server.

Specified by:
connect in interface IDataServerManager
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

disconnect

public void disconnect()
                throws java.io.IOException,
                       AutomationException
Disconnects from the Data Server.

Specified by:
disconnect in interface IDataServerManager
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setServerName

public void setServerName(java.lang.String serverName)
                   throws java.io.IOException,
                          AutomationException
The data server name.

Specified by:
setServerName in interface IDataServerManager
Parameters:
serverName - The serverName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerName

public java.lang.String getServerName()
                               throws java.io.IOException,
                                      AutomationException
The data server name.

Specified by:
getServerName in interface IDataServerManager
Returns:
The serverName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initFromFile

public void initFromFile(java.lang.String gdsFileName)
                  throws java.io.IOException,
                         AutomationException
Initializes a saved connection to the GIS Data Server.

Specified by:
initFromFile in interface IDataServerManager
Parameters:
gdsFileName - The gdsFileName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createConnectionFile

public java.lang.String createConnectionFile(java.lang.String pathName,
                                             java.lang.String serverName)
                                      throws java.io.IOException,
                                             AutomationException
Create a Data Server connection file.

Specified by:
createConnectionFile in interface IDataServerManager
Parameters:
pathName - The pathName (in)
serverName - The serverName (in)
Returns:
The connFileName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isConnected

public boolean isConnected()
                    throws java.io.IOException,
                           AutomationException
Indicates whether the server is connected or not.

Specified by:
isConnected in interface IDataServerManager
Returns:
The isConnected
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDataServerType

public int getDataServerType()
                      throws java.io.IOException,
                             AutomationException
The type of data server.

Specified by:
getDataServerType in interface IDataServerManager
Returns:
A com.esri.arcgis.datasourcesGDB.esriDataServerType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getProductName

public java.lang.String getProductName()
                                throws java.io.IOException,
                                       AutomationException
The product name.

Specified by:
getProductName in interface IDataServerManager
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getProductVersion

public java.lang.String getProductVersion()
                                   throws java.io.IOException,
                                          AutomationException
The product version.

Specified by:
getProductVersion in interface IDataServerManager
Returns:
The version
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAvailableMemory

public int getAvailableMemory()
                       throws java.io.IOException,
                              AutomationException
The total available memory (MB).

Specified by:
getAvailableMemory in interface IDataServerManager
Returns:
The memory
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDataServerClass

public int getDataServerClass()
                       throws java.io.IOException,
                              AutomationException
The server class.

Specified by:
getDataServerClass in interface IDataServerManager
Returns:
A com.esri.arcgis.geodatabase.esriGeodatabaseServerClassType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createGeodatabase

public void createGeodatabase(java.lang.String gdbName,
                              java.lang.String gdbFileName,
                              int gdbFileSize,
                              java.lang.String logFileName,
                              int logFileSize)
                       throws java.io.IOException,
                              AutomationException
Creates a new Geodatabase.

Specified by:
createGeodatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
gdbFileName - The gdbFileName (in)
gdbFileSize - The gdbFileSize (in)
logFileName - The logFileName (in)
logFileSize - The logFileSize (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteGeodatabase

public void deleteGeodatabase(java.lang.String gdbName)
                       throws java.io.IOException,
                              AutomationException
Deletes a Geodatabase.

Specified by:
deleteGeodatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createLogin

public void createLogin(java.lang.String loginName,
                        boolean isAdministrator)
                 throws java.io.IOException,
                        AutomationException
Creates a new login.

Specified by:
createLogin in interface IDataServerManagerAdmin
Parameters:
loginName - The loginName (in)
isAdministrator - The isAdministrator (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

modifyLoginSecurity

public void modifyLoginSecurity(java.lang.String loginName,
                                boolean isAdministrator)
                         throws java.io.IOException,
                                AutomationException
Modify a login's server security.

Specified by:
modifyLoginSecurity in interface IDataServerManagerAdmin
Parameters:
loginName - The loginName (in)
isAdministrator - The isAdministrator (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

modifyGeodatabaseSecurity

public void modifyGeodatabaseSecurity(java.lang.String dbName,
                                      java.lang.String loginName,
                                      int permission)
                               throws java.io.IOException,
                                      AutomationException
Modify a login's database security.

Specified by:
modifyGeodatabaseSecurity in interface IDataServerManagerAdmin
Parameters:
dbName - The dbName (in)
loginName - The loginName (in)
permission - A com.esri.arcgis.datasourcesGDB.esriGeodatabasePermissionsType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteLogin

public void deleteLogin(java.lang.String loginName)
                 throws java.io.IOException,
                        AutomationException
Deletes a login.

Specified by:
deleteLogin in interface IDataServerManagerAdmin
Parameters:
loginName - The loginName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeodatabaseNames

public IEnumBSTR getGeodatabaseNames()
                              throws java.io.IOException,
                                     AutomationException
Returns a list of Geodatabse names.

Specified by:
getGeodatabaseNames in interface IDataServerManagerAdmin
Returns:
A reference to a com.esri.arcgis.system.IEnumBSTR
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLogins

public void getLogins(IEnumBSTR[] loginNames,
                      IEnumBSTR[] dbNames,
                      IEnumBSTR[] loginTypes,
                      IEnumBSTR[] languages)
               throws java.io.IOException,
                      AutomationException
Returns a list logins and associated information.

Specified by:
getLogins in interface IDataServerManagerAdmin
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

detachGeodatabase

public void detachGeodatabase(java.lang.String dbName)
                       throws java.io.IOException,
                              AutomationException
Detachs a database from a server.

Specified by:
detachGeodatabase in interface IDataServerManagerAdmin
Parameters:
dbName - The dbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

attachGeodatabase

public void attachGeodatabase(java.lang.String dbName,
                              java.lang.String dataFileName,
                              java.lang.String logFileName)
                       throws java.io.IOException,
                              AutomationException
Attachs an existing database to a server.

Specified by:
attachGeodatabase in interface IDataServerManagerAdmin
Parameters:
dbName - The dbName (in)
dataFileName - The dataFileName (in)
logFileName - The logFileName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

upgradeGeoDatabase

public void upgradeGeoDatabase(java.lang.String gdbName)
                        throws java.io.IOException,
                               AutomationException
Upgrades a Geodatabase.

Specified by:
upgradeGeoDatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

upgradeSDESchema

public void upgradeSDESchema(java.lang.String gdbName)
                      throws java.io.IOException,
                             AutomationException
Upgrades the SDE schema.

Specified by:
upgradeSDESchema in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeodatabaseName

public java.lang.String getGeodatabaseName(java.lang.String dataFileName)
                                    throws java.io.IOException,
                                           AutomationException
Returns the Database name from the database file.

Specified by:
getGeodatabaseName in interface IDataServerManagerAdmin
Parameters:
dataFileName - The dataFileName (in)
Returns:
The dbName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

backupGeodatabase

public boolean backupGeodatabase(java.lang.String gdbName,
                                 java.lang.String backupFileName,
                                 java.lang.String backupName,
                                 java.lang.String description)
                          throws java.io.IOException,
                                 AutomationException
Performs a full backup on the specified Geodatabase.

Specified by:
backupGeodatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
backupFileName - The backupFileName (in)
backupName - The backupName (in)
description - The description (in)
Returns:
The isSimpleRecoveryModel
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

restoreGeodatabase

public void restoreGeodatabase(java.lang.String gdbName,
                               java.lang.String backupFileName,
                               java.lang.String dbFilePath)
                        throws java.io.IOException,
                               AutomationException
Restores a backup for the specified Geodatabase.

Specified by:
restoreGeodatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
backupFileName - The backupFileName (in)
dbFilePath - The dbFilePath (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSimpleRecoveryModel

public void isSimpleRecoveryModel(java.lang.String gdbName,
                                  boolean[] isSimpleRecoveryModel)
                           throws java.io.IOException,
                                  AutomationException
Returns whether the Geodatabase is in simple recovery model or not.

Specified by:
isSimpleRecoveryModel in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
isSimpleRecoveryModel - The isSimpleRecoveryModel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGeodatabaseToSimpleRecoveryModel

public void setGeodatabaseToSimpleRecoveryModel(java.lang.String gdbName)
                                         throws java.io.IOException,
                                                AutomationException
Sets a Geodatabase to simple recovery model.

Specified by:
setGeodatabaseToSimpleRecoveryModel in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isConnectedUserAdministrator

public boolean isConnectedUserAdministrator()
                                     throws java.io.IOException,
                                            AutomationException
Indicates whether the connected user is an administrator or not.

Specified by:
isConnectedUserAdministrator in interface IDataServerManagerAdmin
Returns:
The isAdministrator
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createWorkspaceName

public IWorkspaceName createWorkspaceName(java.lang.String gdbName,
                                          java.lang.String versionPropName,
                                          java.lang.Object versionSpecifier)
                                   throws java.io.IOException,
                                          AutomationException
Creates a Workspace Name object to the Geodatabase.

Specified by:
createWorkspaceName in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
versionPropName - The versionPropName (in)
versionSpecifier - A Variant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspaceName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDBProperties

public void getDBProperties(java.lang.String dbName,
                            java.lang.String[] status,
                            int[] dbSize,
                            java.lang.String[] owner,
                            java.lang.Object[] createDate,
                            java.lang.Object[] dbBackup)
                     throws java.io.IOException,
                            AutomationException
Returns various properties on a Database.

Specified by:
getDBProperties in interface IDataServerManagerAdmin
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFileProperties

public void getFileProperties(java.lang.String dbName,
                              java.lang.String[] dataName,
                              java.lang.String[] dataPhysicalName,
                              int[] dataFileSize,
                              java.lang.String[] logName,
                              java.lang.String[] logPhysicalName,
                              int[] logFileSize)
                       throws java.io.IOException,
                              AutomationException
Return various properties on a database file.

Specified by:
getFileProperties in interface IDataServerManagerAdmin
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

analyze

public void analyze(java.lang.String gdbName)
             throws java.io.IOException,
                    AutomationException
Updates the statistics for a Geodatabase.

Specified by:
analyze in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rebuildIndices

public void rebuildIndices(java.lang.String gdbName)
                    throws java.io.IOException,
                           AutomationException
Rebuilds the indices on all tables in a Geodatabase.

Specified by:
rebuildIndices in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shrinkGeodatabase

public void shrinkGeodatabase(java.lang.String gdbName)
                       throws java.io.IOException,
                              AutomationException
Shrinks the size of a Geodatabase and frees up unused space.

Specified by:
shrinkGeodatabase in interface IDataServerManagerAdmin
Parameters:
gdbName - The gdbName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConnectedUsers

public int getConnectedUsers(java.lang.String dbName)
                      throws java.io.IOException,
                             AutomationException
Gets active users.

Specified by:
getConnectedUsers in interface IDataServerManagerAdmin
Parameters:
dbName - The dbName (in)
Returns:
The nUsers
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerAdministrators

public void getServerAdministrators(IEnumBSTR[] userNames)
                             throws java.io.IOException,
                                    AutomationException
Gets a list of server administrators.

Specified by:
getServerAdministrators in interface IDataServerManagerAdmin
Parameters:
userNames - A reference to a com.esri.arcgis.system.IEnumBSTR (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUsersByPermissionType

public void getUsersByPermissionType(java.lang.String dbName,
                                     int permission,
                                     IEnumBSTR[] userNames)
                              throws java.io.IOException,
                                     AutomationException
Get Users in by the Permission type.

Specified by:
getUsersByPermissionType in interface IDataServerManagerAdmin
Parameters:
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)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getServerStatus

public int getServerStatus()
                    throws java.io.IOException,
                           AutomationException
The status of the server.

Specified by:
getServerStatus in interface IServiceControl
Returns:
A com.esri.arcgis.datasourcesGDB.esriDataServerStatusType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasControlPermissions

public boolean isHasControlPermissions()
                                throws java.io.IOException,
                                       AutomationException
Indicates whether the user has permissions to control the service.

Specified by:
isHasControlPermissions in interface IServiceControl
Returns:
The hasPermissions
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

stopServer

public void stopServer()
                throws java.io.IOException,
                       AutomationException
Stops the server.

Specified by:
stopServer in interface IServiceControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

startServer

public void startServer()
                 throws java.io.IOException,
                        AutomationException
Starts the server.

Specified by:
startServer in interface IServiceControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

pauseServer

public void pauseServer()
                 throws java.io.IOException,
                        AutomationException
Pauses the server.

Specified by:
pauseServer in interface IServiceControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

continueServer

public void continueServer()
                    throws java.io.IOException,
                           AutomationException
Continues the server.

Specified by:
continueServer in interface IServiceControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.