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

◆ getAdmin()

std::optional< ObjectPrx > Ice::Communicator::getAdmin ( ) const

Gets a proxy to the main facet of the Admin object.

getAdmin also creates the Admin object and creates and activates the Ice.Admin object adapter to host this Admin object if Ice.Admin.Endpoints is set. The identity of the Admin object created by getAdmin is {value of Ice.Admin.InstanceName}/admin, or {UUID}/admin when Ice.Admin.InstanceName is not set. If Ice.Admin.DelayCreation is 0 or not set, getAdmin is called by the communicator initialization, after initialization of all plugins.

Returns
A proxy to the main ("") facet of the Admin object, or nullopt if no Admin object is configured.
Exceptions
CommunicatorDestroyedExceptionThrown when the communicator has been destroyed.
See also
createAdmin