/export/leeloo1/users/build/gfcppsancout64/product/include/gfcpp/PoolManager.hpp

00001 #ifndef __GEMFIRE_POOL_MANAGER_HPP__
00002 #define __GEMFIRE_POOL_MANAGER_HPP__
00003 
00004 /*=========================================================================
00005  * (c) Copyright 2002-2007, GemStone Systems, Inc. All Rights Reserved.
00006  * 1260 NW Waterhouse Ave., Suite 200,  Beaverton, OR 97006
00007  * All Rights Reserved.
00008  *========================================================================
00009  */
00010 #include "gfcpp_globals.hpp"
00011 #include "gf_types.hpp"
00012 #include "Pool.hpp"
00013 #include "PoolFactory.hpp"
00014 #include "Region.hpp"
00015 
00016 namespace gemfire {
00017 
00018 typedef HashMapT< CacheableStringPtr, PoolPtr > HashMapOfPools;
00019 
00031 class CPPCACHE_EXPORT PoolManager {
00032 public:
00033 
00039   static PoolFactoryPtr createFactory();
00040 
00049   static const HashMapOfPools& getAll();
00050 
00057   static PoolPtr find(const char* name);
00058 
00065   static PoolPtr find(RegionPtr region);
00066 
00072   static void close(bool keepAlive = false);
00073 
00074 private:
00075   PoolManager();
00076 };
00077 
00078 }; // Namespace gemfire
00079 #endif //__GEMFIRE_POOL_MANAGER_HPP__

GemFire C++ Cache API Documentation