build-artifacts/win/product/include/gfcpp/PoolManager.hpp

00001 #ifndef __GEMFIRE_POOL_MANAGER_HPP__
00002 #define __GEMFIRE_POOL_MANAGER_HPP__
00003 
00004 /*=========================================================================
00005  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
00006  * This product is protected by U.S. and international copyright
00007  * and intellectual property laws. Pivotal products are covered by
00008  * more patents listed at http://www.pivotal.io/patents.
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 }; // Namespace gemfire
00080 #endif //__GEMFIRE_POOL_MANAGER_HPP__

GemFire C++ Cache API Documentation