summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ObjectCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.h')
-rw-r--r--cpp/src/IceGrid/ObjectCache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h
index c608f57aa7f..cb9d049a6f9 100644
--- a/cpp/src/IceGrid/ObjectCache.h
+++ b/cpp/src/IceGrid/ObjectCache.h
@@ -80,7 +80,7 @@ class ObjectCache : public Cache<Ice::Identity, ObjectEntry>
{
public:
- ObjectCache(AdapterCache&);
+ ObjectCache(const Ice::CommunicatorPtr&, AdapterCache&);
void add(const ObjectInfo&, const std::string&, bool, const AllocatablePtr&);
ObjectEntryPtr get(const Ice::Identity&) const;
@@ -93,6 +93,8 @@ public:
ObjectInfoSeq getAll(const std::string&);
ObjectInfoSeq getAllByType(const std::string&);
+ const Ice::CommunicatorPtr& communicator() const { return _communicator; }
+
private:
class TypeEntry
@@ -117,6 +119,7 @@ private:
int _allocatablesCount;
};
+ Ice::CommunicatorPtr _communicator;
AdapterCache& _adapterCache;
std::map<std::string, TypeEntry> _types;