diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-08-19 14:35:34 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-08-19 14:35:34 +0000 |
commit | 03fb156e997f64dd80d695d34c4eaeefc4ca0956 (patch) | |
tree | cb63867223b81f0fd8db37c22e8c5de450a32ae3 /cpp/src/IceGrid/AdminI.cpp | |
parent | bug fix (diff) | |
download | ice-03fb156e997f64dd80d695d34c4eaeefc4ca0956.tar.bz2 ice-03fb156e997f64dd80d695d34c4eaeefc4ca0956.tar.xz ice-03fb156e997f64dd80d695d34c4eaeefc4ca0956.zip |
Added initial IcePatch2 support in IceGrid.
Diffstat (limited to 'cpp/src/IceGrid/AdminI.cpp')
-rw-r--r-- | cpp/src/IceGrid/AdminI.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/AdminI.cpp b/cpp/src/IceGrid/AdminI.cpp index 5aaf9bb8077..e5f5f056844 100644 --- a/cpp/src/IceGrid/AdminI.cpp +++ b/cpp/src/IceGrid/AdminI.cpp @@ -160,6 +160,24 @@ AdminI::stopServer(const string& id, const Current&) } void +AdminI::patchServer(const string& id, const Current&) +{ + ServerPrx server = _database->getServer(id); + try + { + server->patch(); + } + catch(const Ice::ObjectNotExistException&) + { + throw ServerNotExistException(); + } + catch(const Ice::LocalException&) + { + throw NodeUnreachableException(); + } +} + +void AdminI::sendSignal(const string& id, const string& signal, const Current&) { ServerPrx server = _database->getServer(id); |