summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/NodeCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-12-20 11:43:28 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-12-20 11:43:28 +0000
commitc82cf1603af8c524b6aa2beeee665a24b777f33e (patch)
tree8a5fc14704b05d7826e1f84cb435e4ed6f83d299 /cpp/src/IceGrid/NodeCache.h
parentMore slice2html changes. (diff)
downloadice-c82cf1603af8c524b6aa2beeee665a24b777f33e.tar.bz2
ice-c82cf1603af8c524b6aa2beeee665a24b777f33e.tar.xz
ice-c82cf1603af8c524b6aa2beeee665a24b777f33e.zip
- Added internal descriptor types for node-registry communications
- Various bug fixes
Diffstat (limited to 'cpp/src/IceGrid/NodeCache.h')
-rw-r--r--cpp/src/IceGrid/NodeCache.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h
index 8493921cb7e..edf7471a5dc 100644
--- a/cpp/src/IceGrid/NodeCache.h
+++ b/cpp/src/IceGrid/NodeCache.h
@@ -48,7 +48,7 @@ public:
void setSavedProxy(const NodePrx&);
NodePrx getProxy() const;
- NodeInfo getInfo() const;
+ InternalNodeInfoPtr getInfo() const;
ServerEntrySeq getServers() const;
LoadInfo getLoadInfoAndLoadFactor(const std::string&, float&) const;
@@ -69,6 +69,7 @@ public:
private:
ServerDescriptorPtr getServerDescriptor(const ServerInfo&, const SessionIPtr&);
+ InternalServerDescriptorPtr getInternalServerDescriptor(const ServerInfo&) const;
NodeCache& _cache;
IceUtil::Mutex _refMutex;
@@ -87,18 +88,18 @@ class NodeCache : public CacheByString<NodeEntry>
{
public:
- NodeCache(const Ice::CommunicatorPtr&, ReplicaCache&, bool);
+ NodeCache(const Ice::CommunicatorPtr&, ReplicaCache&, const std::string&);
NodeEntryPtr get(const std::string&, bool = false) const;
const Ice::CommunicatorPtr& getCommunicator() const { return _communicator; }
- bool isMaster() const { return _master; }
+ const std::string& getReplicaName() const { return _replicaName; }
ReplicaCache& getReplicaCache() const { return _replicaCache; }
private:
const Ice::CommunicatorPtr _communicator;
- const bool _master;
+ const std::string _replicaName;
ReplicaCache& _replicaCache;
};