31 pimpl_ =
new EnginePimpl(
this, type, master_upid, master_eid, soc_id);
EngineOptions options_
Options given at boot time.
std::string describe_short() const
cache::CacheManager * get_cache_manager() const
See Snapshot Cache Manager.
ErrorStack initialize() override
Starts up the database engine.
debugging::DebuggingSupports debug_
Debugging supports.
storage::StorageManager storage_manager_
storage::StorageManager * get_storage_manager() const
See Storage Manager.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Eid get_master_eid() const
Returns Engine ID of the master engine.
ErrorStack uninitialize() override final
Typical implementation of Initializable::uninitialize() that provides uninitialize-once semantics...
Brings error stacktrace information as return value of functions.
A child SOC instance launched in other machines.
soc::SocManager soc_manager_
SOC manager.
Procedure manager, which maintains the list of system/user procedures.
snapshot::SnapshotManager snapshot_manager_
const EngineOptions & get_options() const
bool is_master() const
Returns if this engine object is a master instance.
savepoint::SavepointManager * get_savepoint_manager() const
See Savepoint Manager.
proc::ProcManager proc_manager_
Snapshot manager that atomically and durably writes out a snapshot file.
std::string describe_short() const
soc::SocId get_soc_count() const
Shorthand for get_options().thread_.group_count_.
savepoint::SavepointManager savepoint_manager_
EngineType get_type() const
Returns the type of this engine object.
bool is_emulated_child() const
Returns if this engine object is a child instance running just as a thread.
soc::Upid get_master_upid() const
Returns Universal (or Unique) ID of the master process.
thread::ThreadPool thread_pool_
log::LogManager * get_log_manager() const
See Log Manager.
ErrorStack initialize() override final
Typical implementation of Initializable::initialize() that provides initialize-once semantics...
A child SOC instance launched via spawn().
~Engine()
Do NOT rely on this destructor to release resources.
xct::XctManager xct_manager_
Set of option values given to the engine at start-up.
EngineType
Type of an engine instance of how to launch it.
cache::CacheManager cache_manager_
Xct Manager class that provides API to begin/abort/commit transaction.
uint64_t Upid
Universal (or Unique) ID of a process.
memory::EngineMemory memory_manager_
Log Manager class that provides API to write/read transaction logs.
A child SOC instance launched via fork().
proc::ProcManager * get_proc_manager() const
See System and User Procedures.
uint16_t group_count_
Number of ThreadGroup in the engine.
The central instance that launches child engines on each NUMA node (SOC).
const soc::Upid master_upid_
EngineOptions * get_nonconst_options()
Returns an updatable reference to options.
bool is_initialized() const override
Returns whether the engine is currently running.
xct::XctManager * get_xct_manager() const
See Transaction Manager.
log::LogManager log_manager_
uint16_t SocId
Represents an ID of an SOC, or NUMA node.
thread::ThreadOptions thread_
Storage Manager class that provides API to create/open/close/drop key-value stores.
soc::SocManager * get_soc_manager() const
See SOC and IPC.
bool is_remote_spawned_child() const
Returns if this engine object is a child instance remotely launched by spawn.
snapshot::SnapshotManager * get_snapshot_manager() const
See Snapshot Manager.
soc::SocId get_soc_id() const
If this is a child instance, returns its SOC ID (NUMA node).
uint64_t Eid
An Engine ID to differentiate two Engine objects instantiated in the same process.
SOC manager, which maintains the shared resource across SOCs and, if this engine is a master engine...
debugging::DebuggingSupports * get_debug() const
See Debug-Support functionalities.
APIs to support debugging functionalities.
Repository of all memories dynamically acquired and shared within one database engine.
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
memory::EngineMemory * get_memory_manager() const
See Memory Manager.
thread::ThreadPool * get_thread_pool() const
See Thread and Thread-Group.
bool is_initialized() const override final
Returns whether the object has been already initialized or not.
The pool of pre-allocated threads in the engine to execute transactions.
bool is_local_spawned_child() const
Returns if this engine object is a child instance launched by spawn.
bool is_forked_child() const
Returns if this engine object is a child instance launched by fork.
Savepoint manager that atomically and durably writes out a savepoint file.
A child SOC instance launched just as a thread in the same process as master.
ErrorStack uninitialize() override
Terminates the database engine.