libfoedus-core
FOEDUS Core Library
soc_options.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_SOC_SOC_OPTIONS_HPP_
19 #define FOEDUS_SOC_SOC_OPTIONS_HPP_
20 
21 #include <stdint.h>
22 
23 #include <string>
24 
25 #include "foedus/cxx11.hpp"
26 #include "foedus/engine_type.hpp"
28 #include "foedus/fs/filesystem.hpp"
29 
30 namespace foedus {
31 namespace soc {
39  enum Constants {
42  };
43 
47  SocOptions();
48 
55 
61 
76 
86 
88  std::string convert_spawn_executable_pattern(int node) const;
90  std::string convert_spawn_ld_library_path_pattern(int node) const;
91 
93 };
94 } // namespace soc
95 } // namespace foedus
96 #endif // FOEDUS_SOC_SOC_OPTIONS_HPP_
fs::FixedPath spawn_ld_library_path_pattern_
String pattern of LD_LIBRARY_PATH environment variable to spawn SOC engines in each NUMA node...
Definition: soc_options.hpp:85
Represents an object that can be written to and read from files/bytes in XML format.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Definition: assert_nd.hpp:44
SocOptions()
Constructs option values with default values.
Definition: soc_options.cpp:29
#define EXTERNALIZABLE(clazz)
Macro to declare/define essential methods for an externalizable class.
EngineType soc_type_
How to launch SOC engine instances.
Definition: soc_options.hpp:54
std::string convert_spawn_executable_pattern(int node) const
converts spawn_executable_pattern_ into a string with the given node ID.
Definition: soc_options.cpp:36
#define CXX11_FINAL
Used in public headers in place of "final" of C++11.
Definition: cxx11.hpp:131
fs::FixedPath spawn_executable_pattern_
String pattern of path of executables to spawn SOC engines in each NUMA node.
Definition: soc_options.hpp:75
EngineType
Type of an engine instance of how to launch it.
Definition: engine_type.hpp:35
Set of options for SOC manager.
Definition: soc_options.hpp:38
default for shared_user_memory_size_kb_
Definition: soc_options.hpp:41
uint64_t shared_user_memory_size_kb_
As part of the global shared memory, we reserve this size of 'user memory' that can be used for arbit...
Definition: soc_options.hpp:60
std::string convert_spawn_ld_library_path_pattern(int node) const
converts spawn_ld_library_path_pattern_ into a string with the given node ID.
Definition: soc_options.cpp:44