summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/AdapterCache.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-04-27 16:06:50 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-04-27 16:06:50 +0000
commitf4a0472080eb9f570d23892154093f057288c601 (patch)
tree788cd4e98d6963e2a27a3bcdaae6e01973788302 /cpp/src/IceGrid/AdapterCache.h
parentdos2unix (diff)
downloadice-f4a0472080eb9f570d23892154093f057288c601.tar.bz2
ice-f4a0472080eb9f570d23892154093f057288c601.tar.xz
ice-f4a0472080eb9f570d23892154093f057288c601.zip
More work on allocation.
Diffstat (limited to 'cpp/src/IceGrid/AdapterCache.h')
-rw-r--r--cpp/src/IceGrid/AdapterCache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/AdapterCache.h b/cpp/src/IceGrid/AdapterCache.h
index c6568819785..82d5397289a 100644
--- a/cpp/src/IceGrid/AdapterCache.h
+++ b/cpp/src/IceGrid/AdapterCache.h
@@ -15,6 +15,7 @@
#include <IceGrid/Cache.h>
#include <IceGrid/Query.h>
#include <IceGrid/Internal.h>
+#include <IceGrid/Allocatable.h>
namespace IceGrid
{
@@ -28,7 +29,7 @@ typedef std::vector<ServerEntryPtr> ServerEntrySeq;
class AdapterEntry;
typedef IceUtil::Handle<AdapterEntry> AdapterEntryPtr;
-class AdapterEntry : public IceUtil::Shared, public IceUtil::Mutex
+class AdapterEntry : public Allocatable, public IceUtil::Mutex
{
public:
@@ -57,11 +58,14 @@ public:
virtual float getLeastLoadedNodeLoad(LoadSample) const;
virtual std::string getApplication() const;
- void set(const ServerEntryPtr&, const std::string&);
+ void set(const ServerEntryPtr&, const std::string&, bool);
void destroy();
AdapterPrx getProxy(const std::string& = std::string()) const;
+ virtual void allocated(const SessionIPtr&);
+ virtual void released(const SessionIPtr&);
+
private:
ServerEntryPtr getServer() const;