diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-07-27 13:20:03 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-07-27 13:20:03 +0000 |
commit | dad0bda0d462b4730b168befd187ca43446f12e7 (patch) | |
tree | 1a964dc5a3bd2c945e0ee165ddda55c3e4281157 /cpp/src/IceGrid/ServerCache.h | |
parent | Improved __checkMode (diff) | |
download | ice-dad0bda0d462b4730b168befd187ca43446f12e7.tar.bz2 ice-dad0bda0d462b4730b168befd187ca43446f12e7.tar.xz ice-dad0bda0d462b4730b168befd187ca43446f12e7.zip |
More IceGrid replication improvements.
Diffstat (limited to 'cpp/src/IceGrid/ServerCache.h')
-rw-r--r-- | cpp/src/IceGrid/ServerCache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h index bc43e89358b..288579a5020 100644 --- a/cpp/src/IceGrid/ServerCache.h +++ b/cpp/src/IceGrid/ServerCache.h @@ -88,7 +88,7 @@ class ServerCache : public CacheByString<ServerEntry> { public: - ServerCache(const Ice::CommunicatorPtr&, NodeCache&, AdapterCache&, ObjectCache&, AllocatableObjectCache&); + ServerCache(const Ice::CommunicatorPtr&, NodeCache&, AdapterCache&, ObjectCache&, AllocatableObjectCache&, int); ServerEntryPtr add(const ServerInfo&); ServerEntryPtr get(const std::string&) const; @@ -99,7 +99,8 @@ public: NodeCache& getNodeCache() const { return _nodeCache; } Ice::CommunicatorPtr getCommunicator() const { return _communicator; } - + int getSessionTimeout() const { return _sessionTimeout; } + private: void addCommunicator(const CommunicatorDescriptorPtr&, const ServerEntryPtr&); @@ -113,6 +114,7 @@ private: AdapterCache& _adapterCache; ObjectCache& _objectCache; AllocatableObjectCache& _allocatableObjectCache; + int _sessionTimeout; }; }; |