libfoedus-core
FOEDUS Core Library
storage_options.cpp
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  */
19 namespace foedus {
20 namespace storage {
25 }
26 ErrorStack StorageOptions::load(tinyxml2::XMLElement* element) {
30  return kRetOk;
31 }
32 ErrorStack StorageOptions::save(tinyxml2::XMLElement* element) const {
33  CHECK_ERROR(insert_comment(element, "Set of options for storage manager."));
35  "Maximum number of storages in this database.");
37  "Size in MB of a shared memory buffer allocated for all partitioners during log gleaning."
38  "Increase this value when you have a large number of storages that have large partitioning"
39  " information (eg. long keys).");
41  "Hot record threshold; for HCC only.");
42  return kRetOk;
43 }
44 } // namespace storage
45 } // namespace foedus
#define EXTERNALIZE_LOAD_ELEMENT(element, attribute)
Reads a child xml element to load a member variable of this object.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Definition: assert_nd.hpp:44
Brings error stacktrace information as return value of functions.
Definition: error_stack.hpp:81
static ErrorStack insert_comment(tinyxml2::XMLElement *element, const std::string &comment)
uint32_t max_storages_
Maximum number of storages in this database.
uint64_t hot_threshold_
Page hotness >= this value will be considered hot (hybrid CC only).
uint32_t partitioner_data_memory_mb_
Size in MB of a shared memory buffer allocated for all partitioners during log gleaning.
ErrorStack save(tinyxml2::XMLElement *element) const override
Writes the content of this object to the given XML element.
StorageOptions()
Constructs option values with default values.
#define CHECK_ERROR(x)
This macro calls x and checks its returned value.
const ErrorStack kRetOk
Normal return value for no-error case.
ErrorStack load(tinyxml2::XMLElement *element) override
Reads the content of this object from the given XML element.
#define EXTERNALIZE_SAVE_ELEMENT(element, attribute, comment)
Adds an xml element to represent a member variable of this object.