VMware GemFire Native C++ Reference
9.2.4
PoolManager.hpp
1
#pragma once
2
3
#ifndef GEODE_POOLMANAGER_H_
4
#define GEODE_POOLMANAGER_H_
5
6
/*
7
* Licensed to the Apache Software Foundation (ASF) under one or more
8
* contributor license agreements. See the NOTICE file distributed with
9
* this work for additional information regarding copyright ownership.
10
* The ASF licenses this file to You under the Apache License, Version 2.0
11
* (the "License"); you may not use this file except in compliance with
12
* the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing, software
17
* distributed under the License is distributed on an "AS IS" BASIS,
18
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
* See the License for the specific language governing permissions and
20
* limitations under the License.
21
*/
22
#include "geode_globals.hpp"
23
#include "
geode_types.hpp
"
24
#include "
Pool.hpp
"
25
#include "
PoolFactory.hpp
"
26
#include "
Region.hpp
"
27
28
namespace
apache
{
29
namespace
geode
{
30
namespace
client {
31
32
typedef
HashMapT<CacheableStringPtr, PoolPtr> HashMapOfPools;
33
45
class
CPPCACHE_EXPORT
PoolManager
{
46
public
:
52
static
PoolFactoryPtr
createFactory();
53
64
static
const
HashMapOfPools
& getAll();
65
73
static
PoolPtr
find(
const
char
* name);
74
82
static
PoolPtr
find(
RegionPtr
region);
83
91
static
void
close(
bool
keepAlive =
false
);
92
93
private
:
94
PoolManager
();
95
};
96
}
// namespace client
97
}
// namespace geode
98
}
// namespace apache
99
100
#endif // GEODE_POOLMANAGER_H_
apache
Each enum represents a predefined RegionAttributes in a {}.
Definition:
Assert.hpp:31
PoolFactory.hpp
apache::geode::client::HashMapT
HashMap of TKEY to TVAL.
Definition:
HashMapT.hpp:38
geode_types.hpp
geode
apache::geode::client::PoolManager
Manages creation and access to connection pools for clients.
Definition:
PoolManager.hpp:45
Region.hpp
CPPCACHE_EXPORT
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition:
geode_base.hpp:58
Pool.hpp
apache::geode::client::SharedPtr< PoolFactory >
Pivotal GemFire C++ Cache API Documentation