summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-09-13 08:20:38 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-09-13 08:20:38 +0000
commit7f24d81b685383e7cc09e32ad89c830d86372ca0 (patch)
tree8ccefbe74117f62bd42dd8794cc15e3f9674cb36 /cpp/src/IceGrid/NodeCache.h
parentRemoved bogus abort(); // XXX (diff)
downloadice-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.h6
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;