diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-03 13:12:54 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-03 13:12:54 +0000 |
commit | 39952a0fc932b6a65612d3402937be9b222c13e1 (patch) | |
tree | 451947254047968d700db7286d309401bd3cb09f /cpp/src/IceGrid/AdapterCache.h | |
parent | Some refactoring of string converter usage (diff) | |
download | ice-39952a0fc932b6a65612d3402937be9b222c13e1.tar.bz2 ice-39952a0fc932b6a65612d3402937be9b222c13e1.tar.xz ice-39952a0fc932b6a65612d3402937be9b222c13e1.zip |
Added stress test, fixed bugs.
Diffstat (limited to 'cpp/src/IceGrid/AdapterCache.h')
-rw-r--r-- | cpp/src/IceGrid/AdapterCache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/AdapterCache.h b/cpp/src/IceGrid/AdapterCache.h index 8a70c23ddca..be7203955de 100644 --- a/cpp/src/IceGrid/AdapterCache.h +++ b/cpp/src/IceGrid/AdapterCache.h @@ -29,11 +29,11 @@ typedef std::vector<ServerEntryPtr> ServerEntrySeq; class AdapterEntry; typedef IceUtil::Handle<AdapterEntry> AdapterEntryPtr; -class AdapterEntry : public Allocatable, public IceUtil::Mutex +class AdapterEntry : virtual public IceUtil::Shared, public IceUtil::Mutex { public: - AdapterEntry(AdapterCache&, const std::string&, bool, const AllocatablePtr&); + AdapterEntry(AdapterCache&, const std::string&); virtual std::vector<std::pair<std::string, AdapterPrx> > getProxies(int&, const SessionIPtr&) = 0; virtual float getLeastLoadedNodeLoad(LoadSample) const = 0; @@ -49,7 +49,7 @@ protected: }; typedef IceUtil::Handle<AdapterEntry> AdapterEntryPtr; -class ServerAdapterEntry : public AdapterEntry +class ServerAdapterEntry : public AdapterEntry, public Allocatable { public: @@ -63,7 +63,7 @@ public: AdapterPrx getProxy(const std::string& = std::string()) const; - virtual void allocated(const SessionIPtr&); + virtual bool allocated(const SessionIPtr&); virtual void released(const SessionIPtr&); private: |