diff options
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; |