summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-05-02 17:34:45 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-05-02 17:34:45 +0000
commit4bc0f1f2475d28d5e3e86d3a43cd50413300fb5b (patch)
tree0a183eb32423ca1177e59042d23b04fb8452452e /cpp/src/IceGrid/ServerCache.h
parentmodifying property name a bit (diff)
downloadice-4bc0f1f2475d28d5e3e86d3a43cd50413300fb5b.tar.bz2
ice-4bc0f1f2475d28d5e3e86d3a43cd50413300fb5b.tar.xz
ice-4bc0f1f2475d28d5e3e86d3a43cd50413300fb5b.zip
Cleaned up the server, adapter and object cache classes.
Diffstat (limited to 'cpp/src/IceGrid/ServerCache.h')
-rw-r--r--cpp/src/IceGrid/ServerCache.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h
index 4a7ea3a8243..ce0da237349 100644
--- a/cpp/src/IceGrid/ServerCache.h
+++ b/cpp/src/IceGrid/ServerCache.h
@@ -32,7 +32,7 @@ class ServerEntry : public Allocatable, public IceUtil::Monitor<IceUtil::Mutex>
{
public:
- ServerEntry(Cache<std::string, ServerEntry>&, const std::string&);
+ ServerEntry(ServerCache&, const std::string&);
void sync();
void update(const ServerInfo&);
@@ -83,11 +83,11 @@ class ServerCache : public CacheByString<ServerEntry>
{
public:
- ServerCache(NodeCache&, AdapterCache&, ObjectCache&);
+ ServerCache(const Ice::CommunicatorPtr&, NodeCache&, AdapterCache&, ObjectCache&);
ServerEntryPtr add(const ServerInfo&);
- ServerEntryPtr get(const std::string&);
- bool has(const std::string&);
+ ServerEntryPtr get(const std::string&) const;
+ bool has(const std::string&) const;
ServerEntryPtr remove(const std::string&, bool = true);
void clear(const std::string&);
@@ -102,6 +102,7 @@ private:
friend struct AddCommunicator;
friend struct RemoveCommunicator;
+ const Ice::CommunicatorPtr _communicator;
NodeCache& _nodeCache;
AdapterCache& _adapterCache;
ObjectCache& _objectCache;