00001 #ifndef __GEMFIRE_POOL_MANAGER_HPP__
00002 #define __GEMFIRE_POOL_MANAGER_HPP__
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "gfcpp_globals.hpp"
00012 #include "gf_types.hpp"
00013 #include "Pool.hpp"
00014 #include "PoolFactory.hpp"
00015 #include "Region.hpp"
00016
00017 namespace gemfire {
00018
00019 typedef HashMapT< CacheableStringPtr, PoolPtr > HashMapOfPools;
00020
00032 class CPPCACHE_EXPORT PoolManager {
00033 public:
00034
00040 static PoolFactoryPtr createFactory();
00041
00050 static const HashMapOfPools& getAll();
00051
00058 static PoolPtr find(const char* name);
00059
00066 static PoolPtr find(RegionPtr region);
00067
00073 static void close(bool keepAlive = false);
00074
00075 private:
00076 PoolManager();
00077 };
00078
00079 };
00080 #endif //__GEMFIRE_POOL_MANAGER_HPP__