diff options
Diffstat (limited to 'cpp/src/IceGrid/NodeCache.h')
-rw-r--r-- | cpp/src/IceGrid/NodeCache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h index 86989d237c9..ceea6d94b89 100644 --- a/cpp/src/IceGrid/NodeCache.h +++ b/cpp/src/IceGrid/NodeCache.h @@ -51,7 +51,7 @@ public: bool canRemove(); - void loadServer(const ServerEntryPtr&, const ServerInfo&, const SessionIPtr&, int); + void loadServer(const ServerEntryPtr&, const ServerInfo&, const SessionIPtr&); void destroyServer(const ServerEntryPtr&, const std::string&); ServerInfo getServerInfo(const ServerInfo&, const SessionIPtr&); @@ -71,18 +71,20 @@ class NodeCache : public CacheByString<NodeEntry> { public: - NodeCache(const Ice::CommunicatorPtr&, ReplicaCache&); + NodeCache(const Ice::CommunicatorPtr&, ReplicaCache&, bool); void destroy(); NodeEntryPtr get(const std::string&, bool = false) const; const Ice::CommunicatorPtr& getCommunicator() const { return _communicator; } + bool isMaster() const { return _master; } ReplicaCache& getReplicaCache() const { return _replicaCache; } private: const Ice::CommunicatorPtr _communicator; + const bool _master; ReplicaCache& _replicaCache; }; |