libfoedus-core
FOEDUS Core Library
cache_manager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by the Free
5  * Software Foundation; either version 2 of the License, or (at your option)
6  * any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11  * more details. You should have received a copy of the GNU General Public
12  * License along with this program; if not, write to the Free Software
13  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14  *
15  * HP designates this particular file as subject to the "Classpath" exception
16  * as provided by HP in the LICENSE.txt file that accompanied this code.
17  */
18 #ifndef FOEDUS_CACHE_CACHE_MANAGER_HPP_
19 #define FOEDUS_CACHE_CACHE_MANAGER_HPP_
20 
21 #include <string>
22 
23 #include "foedus/fwd.hpp"
24 #include "foedus/initializable.hpp"
26 #include "foedus/cache/fwd.hpp"
27 
28 namespace foedus {
29 namespace cache {
38  public:
40  explicit CacheManager(Engine* engine);
41  ~CacheManager();
44 
45  const CacheOptions& get_options() const;
46 
48  std::string describe() const;
49 
63 
64  private:
65  CacheManagerPimpl* pimpl_;
66 };
67 } // namespace cache
68 } // namespace foedus
69 #endif // FOEDUS_CACHE_CACHE_MANAGER_HPP_
ErrorStack initialize_once() override
std::string describe() const
kind of to_string().
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Definition: assert_nd.hpp:44
Forward declarations of classes in root package.
Brings error stacktrace information as return value of functions.
Definition: error_stack.hpp:81
ErrorStack stop_cleaner()
Stops internal eviction thread even before uninitialize() of this object is called.
Typical implementation of Initializable as a skeleton base class.
Forward declarations of classes in cache package.
ErrorStack uninitialize_once() override
Database engine object that holds all resources and provides APIs.
Definition: engine.hpp:109
Pimpl object of CacheManager.
Set of options for snapshot cache manager.
#define CXX11_OVERRIDE
Used in public headers in place of "override" of C++11.
Definition: cxx11.hpp:134
#define CXX11_FUNC_DELETE
Used in public headers in place of " = delete" of C++11.
Definition: cxx11.hpp:128
Snapshot cache manager.
const CacheOptions & get_options() const