Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ enableServer()

void IceGrid::AdminPrx::enableServer ( std::string_view id,
bool enabled,
const Ice::Context & context = Ice::noExplicitContext ) const

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.
contextThe request context.
Exceptions
IceGrid::DeploymentExceptionThrown when the deployment of the server failed.
IceGrid::NodeUnreachableExceptionThrown when the node is unreachable.
IceGrid::ServerNotExistExceptionThrown when the server doesn't exist.