Ice 3.8
Slice API Reference
Loading...
Searching...
No Matches

◆ enableServer()

idempotent void enableServer ( string id,
bool enabled ) throws ServerNotExistException, NodeUnreachableException, DeploymentException

Enables or disables a server.

A disabled server can't be started on demand or administratively. The enable state of the server is not persistent: if the node is shut down and restarted, the server will be enabled by default.

Parameters
idThe server ID.
enabledtrue to enable the server, false to disable it.
Exceptions
ServerNotExistExceptionThrown when the server doesn't exist.
NodeUnreachableExceptionThrown when the node is unreachable.
DeploymentExceptionThrown when the deployment of the server failed.