diff options
Diffstat (limited to 'cpp/src/IceGrid/AdminI.cpp')
-rw-r--r-- | cpp/src/IceGrid/AdminI.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/AdminI.cpp b/cpp/src/IceGrid/AdminI.cpp index 5581ca7b35c..9642b35747e 100644 --- a/cpp/src/IceGrid/AdminI.cpp +++ b/cpp/src/IceGrid/AdminI.cpp @@ -774,6 +774,25 @@ AdminI::getNodeLoad(const string& name, const Current&) const return LoadInfo(); // Keep the compiler happy. } +int +AdminI::getNodeProcessorSocketCount(const string& name, const Current&) const +{ + try + { + return _database->getNode(name)->getProxy()->getProcessorSocketCount(); + } + catch(const Ice::ObjectNotExistException&) + { + throw NodeNotExistException(name); + } + catch(const Ice::LocalException& ex) + { + ostringstream os; + os << ex; + throw NodeUnreachableException(name, os.str()); + } +} + void AdminI::shutdownNode(const string& name, const Current&) { |