diff options
Diffstat (limited to 'cpp/src/IceGrid/AdminI.cpp')
-rw-r--r-- | cpp/src/IceGrid/AdminI.cpp | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/cpp/src/IceGrid/AdminI.cpp b/cpp/src/IceGrid/AdminI.cpp index 7f14b8669e3..1fb425490d4 100644 --- a/cpp/src/IceGrid/AdminI.cpp +++ b/cpp/src/IceGrid/AdminI.cpp @@ -64,36 +64,24 @@ AdminI::getApplicationDescriptor(const string& name, const Current&) const return _database->getApplicationDescriptor(name); } -void -AdminI::instantiateServer(const string& name, const string& tmpl, const StringStringDict& parameters, const Current&) -{ - try - { - ApplicationDescriptorHelper helper(_communicator, _database->getApplicationDescriptor(name)); - helper.addServerInstance(tmpl, parameters); - _database->syncApplicationDescriptor(0, helper.getDescriptor()); - ApplicationUpdateDescriptor update; - } - catch(const std::string& msg) - { - DeploymentException ex; - ex.reason = msg; - throw ex; - } -} - Ice::StringSeq AdminI::getAllApplicationNames(const Current&) const { return _database->getAllApplications(); } -InstanceDescriptor +ServerInstanceDescriptor AdminI::getServerDescriptor(const string& name, const Current&) const { return _database->getServerDescriptor(name); } +string +AdminI::getServerApplication(const string& name, const Current&) const +{ + return _database->getServerApplication(name); +} + ServerState AdminI::getServerState(const string& name, const Current&) const { |