diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 09:59:37 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 09:59:37 +0000 |
commit | 754eac4c3527879ebf43fcd38a9970c0e735e00d (patch) | |
tree | e6ce1c6aab5402f0e0acf046ed841738bc95627b /cpp/src/IceGrid/ObjectCache.h | |
parent | Simplified Application view; fixed PropertySets issues (diff) | |
download | ice-754eac4c3527879ebf43fcd38a9970c0e735e00d.tar.bz2 ice-754eac4c3527879ebf43fcd38a9970c0e735e00d.tar.xz ice-754eac4c3527879ebf43fcd38a9970c0e735e00d.zip |
Fixed allocateByType bug, fixed TODO XXX
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.h')
-rw-r--r-- | cpp/src/IceGrid/ObjectCache.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h index 6620f040f37..24a1a0f597d 100644 --- a/cpp/src/IceGrid/ObjectCache.h +++ b/cpp/src/IceGrid/ObjectCache.h @@ -87,7 +87,6 @@ public: ObjectEntryPtr remove(const Ice::Identity&); void allocateByType(const std::string&, const ObjectAllocationRequestPtr&); - void allocateByTypeOnLeastLoadedNode(const std::string&, const ObjectAllocationRequestPtr&, LoadSample); bool canTryAllocate(const ObjectEntryPtr&); Ice::ObjectProxySeq getObjectsByType(const std::string&); @@ -100,22 +99,22 @@ private: { public: - TypeEntry(ObjectCache&); + TypeEntry(); - - void add(const Ice::ObjectPrx&); - bool remove(const Ice::ObjectPrx&); + void add(const ObjectEntryPtr&); + bool remove(const ObjectEntryPtr&); void addAllocationRequest(const ObjectAllocationRequestPtr&); bool canTryAllocate(const ObjectEntryPtr&); - const Ice::ObjectProxySeq& getObjects() const { return _objects; } + const std::vector<ObjectEntryPtr>& getObjects() const { return _objects; } + bool hasAllocatables() const; private: - ObjectCache& _cache; - Ice::ObjectProxySeq _objects; + std::vector<ObjectEntryPtr> _objects; std::list<ObjectAllocationRequestPtr> _requests; + int _allocatablesCount; }; AdapterCache& _adapterCache; |