com.esri.arcgis.datasourcesGDB
Interface IServiceControl

All Superinterfaces:
Serializable
All Known Implementing Classes:
DataServerManager

public interface IServiceControl
extends Serializable

Provides access to members controlling the database service.

Remarks

The IServiceControl interface allows you to perform general operations on a Database Service, such as Start, Stop, Pause, etc. You do not need to be connected to the Database Service in order to use these methods.

Product Availability

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


Method Summary
 void continueServer()
          Continues the server.
 int getServerStatus()
          The status of the server.
 boolean isHasControlPermissions()
          Indicates whether the user has permissions to control the service.
 void pauseServer()
          Pauses the server.
 void startServer()
          Starts the server.
 void stopServer()
          Stops the server.
 

Method Detail

getServerStatus

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

Remarks

This method returns the current status of the database service (see esriDataServerStatusType).

Product Availability

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

Returns:
A com.esri.arcgis.datasourcesGDB.esriDataServerStatusType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasControlPermissions

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

Remarks

This method returns whether a user has permissions to exercise control over the database service.

Product Availability

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

Returns:
The hasPermissions
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

stopServer

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

Description

This method stops a database service.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

startServer

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

Description

This method starts a database service.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

pauseServer

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

Description

This method pauses a database service.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

continueServer

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

Description

This method continues a database service.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.