diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-09-25 22:38:26 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-09-25 22:38:26 +0000 |
commit | f953fd71ec8e0d1ae425428dcfd9721dea40a608 (patch) | |
tree | 94e36c55732771d5d5f9bc9dea60794902704194 /cpp/src/IcePack/AdminI.cpp | |
parent | Added server activation settings. (diff) | |
download | ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.tar.bz2 ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.tar.xz ice-f953fd71ec8e0d1ae425428dcfd9721dea40a608.zip |
Added server activation settings to icepackadmin.
Diffstat (limited to 'cpp/src/IcePack/AdminI.cpp')
-rw-r--r-- | cpp/src/IcePack/AdminI.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/src/IcePack/AdminI.cpp b/cpp/src/IcePack/AdminI.cpp index f09b89c5f96..8b592d22bb7 100644 --- a/cpp/src/IcePack/AdminI.cpp +++ b/cpp/src/IcePack/AdminI.cpp @@ -168,6 +168,42 @@ IcePack::AdminI::getAllServerNames(const Current&) const return _serverRegistry->getAll(); } +ServerActivation +IcePack::AdminI::getServerActivation(const ::std::string& name, const Ice::Current&) const +{ + ServerPrx server = _serverRegistry->findByName(name); + try + { + return server->getActivationMode(); + } + catch(const Ice::ObjectNotExistException&) + { + throw ServerNotExistException(); + } + catch(const Ice::LocalException&) + { + throw NodeUnreachableException(); + } +} + +void +IcePack::AdminI::setServerActivation(const ::std::string& name, ServerActivation mode, const Ice::Current&) +{ + ServerPrx server = _serverRegistry->findByName(name); + try + { + return server->setActivationMode(mode); + } + catch(const Ice::ObjectNotExistException&) + { + throw ServerNotExistException(); + } + catch(const Ice::LocalException&) + { + throw NodeUnreachableException(); + } +} + string IcePack::AdminI::getAdapterEndpoints(const string& name, const Current&) const { |