summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerCache.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-11-21 17:58:52 -0500
committerBernard Normier <bernard@zeroc.com>2007-11-21 17:58:52 -0500
commit7826d8dd30b3bbbd3be4c65df8260164a9021798 (patch)
tree415bad61d47d08332f3ea6a377dc95b6dea467f9 /cpp/src/IceGrid/ServerCache.h
parentAdded AMI call (diff)
downloadice-7826d8dd30b3bbbd3be4c65df8260164a9021798.tar.bz2
ice-7826d8dd30b3bbbd3be4c65df8260164a9021798.tar.xz
ice-7826d8dd30b3bbbd3be4c65df8260164a9021798.zip
Refactored server-properties access/retrieval from IceGrid admin client
Diffstat (limited to 'cpp/src/IceGrid/ServerCache.h')
-rw-r--r--cpp/src/IceGrid/ServerCache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h
index bf859b4f3d8..d3b08e527f3 100644
--- a/cpp/src/IceGrid/ServerCache.h
+++ b/cpp/src/IceGrid/ServerCache.h
@@ -49,6 +49,8 @@ public:
ServerPrx getProxy(int&, int&, std::string&, bool = true);
ServerPrx getProxy(bool = true);
+ Ice::ObjectPrx getAdminProxy();
+
AdapterPrx getAdapter(const std::string&, bool);
AdapterPrx getAdapter(int&, int&, const std::string&, bool);
float getLoad(LoadSample) const;
@@ -94,7 +96,7 @@ class ServerCache : public CacheByString<ServerEntry>
{
public:
- ServerCache(const Ice::CommunicatorPtr&, NodeCache&, AdapterCache&, ObjectCache&, AllocatableObjectCache&);
+ ServerCache(const Ice::CommunicatorPtr&, const std::string&, NodeCache&, AdapterCache&, ObjectCache&, AllocatableObjectCache&);
ServerEntryPtr add(const ServerInfo&);
ServerEntryPtr get(const std::string&) const;
@@ -105,6 +107,7 @@ public:
NodeCache& getNodeCache() const { return _nodeCache; }
Ice::CommunicatorPtr getCommunicator() const { return _communicator; }
+ const std::string& getInstanceName() const { return _instanceName; }
private:
@@ -115,6 +118,7 @@ private:
friend struct RemoveCommunicator;
const Ice::CommunicatorPtr _communicator;
+ const std::string _instanceName;
NodeCache& _nodeCache;
AdapterCache& _adapterCache;
ObjectCache& _objectCache;