diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-08-23 15:44:31 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-08-23 15:44:31 +0000 |
commit | 725d1f86adc4e2129c75c7b24e7fa1000c0d18c3 (patch) | |
tree | 570c1bd999daede2f08f334225a84458329eab7f /cpp/src/IceGrid/NodeCache.h | |
parent | Added more tracing (diff) | |
download | ice-725d1f86adc4e2129c75c7b24e7fa1000c0d18c3.tar.bz2 ice-725d1f86adc4e2129c75c7b24e7fa1000c0d18c3.tar.xz ice-725d1f86adc4e2129c75c7b24e7fa1000c0d18c3.zip |
More replication work.
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; }; |