summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-11-03 20:38:26 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-11-03 20:38:26 +0000
commit871f4f1a52176c8e0a5b57d946b9d5392b7f3c53 (patch)
tree86ab7639887b9b0f663f8ccc7033235c74f23088 /cpp/src/IceGrid/ServerCache.h
parentminor changes, reordering IceGrid properties, adding (diff)
downloadice-871f4f1a52176c8e0a5b57d946b9d5392b7f3c53.tar.bz2
ice-871f4f1a52176c8e0a5b57d946b9d5392b7f3c53.tar.xz
ice-871f4f1a52176c8e0a5b57d946b9d5392b7f3c53.zip
Many IceGrid bug fixes.
Diffstat (limited to 'cpp/src/IceGrid/ServerCache.h')
-rw-r--r--cpp/src/IceGrid/ServerCache.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h
index d7a5e1cb606..1b8da043bc1 100644
--- a/cpp/src/IceGrid/ServerCache.h
+++ b/cpp/src/IceGrid/ServerCache.h
@@ -49,9 +49,13 @@ public:
bool canRemove();
bool isDestroyed();
+ void loadCallback(const ServerPrx&, const AdapterPrxDict&, int, int);
+ void destroyCallback();
+ void exception(const Ice::Exception&);
+
private:
- ServerPrx syncImpl(AdapterPrxDict&, int&, int&, std::string&);
+ void syncImpl(bool);
ServerCache& _cache;
const std::string _id;
@@ -65,6 +69,8 @@ private:
int _deactivationTimeout;
bool _synchronizing;
+ bool _updated;
+ std::auto_ptr<Ice::Exception> _exception;
};
typedef IceUtil::Handle<ServerEntry> ServerEntryPtr;
typedef std::vector<ServerEntryPtr> ServerEntrySeq;
@@ -77,6 +83,7 @@ public:
ServerEntryPtr add(const ServerInfo&);
ServerEntryPtr get(const std::string&);
+ virtual bool has(const std::string&);
ServerEntryPtr remove(const std::string&, bool = true);
void clear(const std::string&);