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

◆ enableServerAsync()

virtual void IceGrid::AsyncAdmin::enableServerAsync ( std::string id,
bool enabled,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

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.
responseThe response callback.
exceptionThe exception callback.
currentThe Current object of the incoming request.
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.