diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-09-13 08:20:38 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-09-13 08:20:38 +0000 |
commit | 7f24d81b685383e7cc09e32ad89c830d86372ca0 (patch) | |
tree | 8ccefbe74117f62bd42dd8794cc15e3f9674cb36 /cpp/src/IceGrid/NodeCache.h | |
parent | Removed bogus abort(); // XXX (diff) | |
download | ice-7f24d81b685383e7cc09e32ad89c830d86372ca0.tar.bz2 ice-7f24d81b685383e7cc09e32ad89c830d86372ca0.tar.xz ice-7f24d81b685383e7cc09e32ad89c830d86372ca0.zip |
Added support for load factor
Added warning for unknown XML attributes
Diffstat (limited to 'cpp/src/IceGrid/NodeCache.h')
-rw-r--r-- | cpp/src/IceGrid/NodeCache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h index 3384914651a..21e77482102 100644 --- a/cpp/src/IceGrid/NodeCache.h +++ b/cpp/src/IceGrid/NodeCache.h @@ -32,13 +32,16 @@ public: NodeEntry(Cache<std::string, NodeEntry>&, const std::string&); + void addDescriptor(const std::string&, const NodeDescriptor&); + void removeDescriptor(const std::string&); + void addServer(const ServerEntryPtr&); void removeServer(const ServerEntryPtr&); void setSession(const NodeSessionIPtr&); NodePrx getProxy() const; Ice::StringSeq getServers() const; - LoadInfo getLoadInfo() const; + LoadInfo getLoadInfoAndLoadFactor(const std::string&, float&) const; bool canRemove(); @@ -48,6 +51,7 @@ private: const std::string _name; NodeSessionIPtr _session; std::map<std::string, ServerEntryPtr> _servers; + std::map<std::string, NodeDescriptor> _descriptors; }; typedef IceUtil::Handle<NodeEntry> NodeEntryPtr; |