|
libfoedus-core
FOEDUS Core Library
|
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services). More...
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
See Main Page for installation/quick-start/project overview.
Namespaces | |
| assorted | |
| Assorted Methods/Classes that are too subtle to have their own packages. | |
| cache | |
| Snapshot Cache Manager, which caches data pages retrieved from snapshot files. | |
| debugging | |
| Debug-Support functionalities. | |
| externalize | |
| Object Externalization. | |
| fs | |
| Filesystem wrapper, an analogue of boost::filesystem. | |
| log | |
| Log Manager, which writes out transactional logs. | |
| memory | |
| Memory Manager, which controls memory allocations, deallocations, and sharing. | |
| proc | |
| System and User Procedures. | |
| restart | |
| Restart Manager, which recovers the state of database by re-playing transaction logs at start-up. | |
| savepoint | |
| Savepoint Manager, which durably and atomically remembers what happened in the engine occasionally (eg. | |
| snapshot | |
| Snapshot Manager, which manages snapshot files of the database. | |
| soc | |
| System On Chip (SOC) and interprocess communication (IPC). | |
| storage | |
| Storage Manager, which implements a couple of key/value stores. | |
| thread | |
| Thread and Thread-Group, which abstracts NUMA-core/node and provides API to attach/detach tasks to pooled threads. | |
| xct | |
| Transaction Manager, which provides APIs to begin/commit/abort transactions. | |
Classes | |
| class | Attachable |
| Attachable Resources on Shared Memory. More... | |
| class | DefaultInitializable |
| Typical implementation of Initializable as a skeleton base class. More... | |
| class | Engine |
| Database engine object that holds all resources and provides APIs. More... | |
| struct | EngineOptions |
| Set of option values given to the engine at start-up. More... | |
| class | EnginePimpl |
| Pimpl object of Engine. More... | |
| class | Epoch |
| Represents a time epoch. More... | |
| class | ErrorStack |
| Brings error stacktrace information as return value of functions. More... | |
| class | ErrorStackBatch |
| Batches zero or more ErrorStack objects to represent in one ErrorStack. More... | |
| class | FixedErrorStack |
| Representation of ErrorStack that can be copied to other processes and even serialized to files. More... | |
| class | Initializable |
| The pure-virtual interface to initialize/uninitialize non-trivial resources. More... | |
| class | UninitializeGuard |
| Calls Initializable::uninitialize() automatically when it gets out of scope. More... | |
Typedefs | |
| typedef uint64_t | Eid |
| An Engine ID to differentiate two Engine objects instantiated in the same process. More... | |
Functions | |
| std::string | print_assert (const char *file, const char *func, int line, const char *description) |
| Helper function to report what assertion failed. More... | |
| std::string | print_backtrace () |
| Prints out backtrace. More... | |
| void | print_assert_backtrace (const char *file, const char *func, int line, const char *description) |
| print_assert() + print_backtrace(). More... | |
| std::string | get_recent_assert_backtrace () |
| Retrieves the info left by print_assert_backtrace(). More... | |
| const char * | get_error_name (ErrorCode code) |
| Returns the names of ErrorCode enum defined in error_code.xmacro. More... | |
| const char * | get_error_message (ErrorCode code) |
| Returns the error messages corresponding to ErrorCode enum defined in error_code.xmacro. More... | |
| template<typename ENGINE_OPTION_PTR , typename CHILD_PTR > | |
| std::vector< CHILD_PTR > | get_children_impl (ENGINE_OPTION_PTR option) |
| std::vector< externalize::Externalizable * > | get_children (EngineOptions *option) |
| std::vector< const externalize::Externalizable * > | get_children (const EngineOptions *option) |
| std::ostream & | operator<< (std::ostream &o, const Epoch &v) |
| std::ostream & | operator<< (std::ostream &o, const ErrorStack &obj) |
| std::ostream & | operator<< (std::ostream &o, const ErrorStackBatch &obj) |
| std::ostream & | operator<< (std::ostream &o, const FixedErrorStack &obj) |
Variables | |
| const Epoch | INVALID_EPOCH |
| A constant epoch object that represents an invalid epoch. More... | |
| const ErrorStack | kRetOk |
| Normal return value for no-error case. More... | |
| std::string | static_recent_assert_backtrace |
| Leaves recent crash information in a static global variable so that a signal handler can pick it. More... | |
| std::string | static_recent_dump_and_abort |
| Leaves recent dump information in a static global variable so that a signal handler can pick it. More... | |
| typedef uint64_t foedus::Eid |
| std::vector< externalize::Externalizable* > foedus::get_children | ( | EngineOptions * | option | ) |
Definition at line 62 of file engine_options.cpp.
Referenced by foedus::EngineOptions::load(), foedus::EngineOptions::operator=(), and foedus::EngineOptions::save().

| std::vector< const externalize::Externalizable* > foedus::get_children | ( | const EngineOptions * | option | ) |
Definition at line 65 of file engine_options.cpp.
| std::vector< CHILD_PTR > foedus::get_children_impl | ( | ENGINE_OPTION_PTR | option | ) |
Definition at line 46 of file engine_options.cpp.
| std::string foedus::get_recent_assert_backtrace | ( | ) |
Retrieves the info left by print_assert_backtrace().
Called by signal handler
Definition at line 60 of file assert_nd.cpp.
References static_recent_assert_backtrace.
| std::ostream& foedus::operator<< | ( | std::ostream & | o, |
| const Epoch & | v | ||
| ) |
Definition at line 23 of file epoch.cpp.
References foedus::Epoch::is_valid(), and foedus::Epoch::value().

| std::ostream& foedus::operator<< | ( | std::ostream & | o, |
| const ErrorStackBatch & | obj | ||
| ) |
Definition at line 43 of file error_stack_batch.cpp.
References SUMMARIZE_ERROR_BATCH.
| std::ostream& foedus::operator<< | ( | std::ostream & | o, |
| const ErrorStack & | obj | ||
| ) |
Definition at line 78 of file error_stack.cpp.
References foedus::ErrorStack::output().

| std::ostream& foedus::operator<< | ( | std::ostream & | o, |
| const FixedErrorStack & | obj | ||
| ) |
Definition at line 106 of file fixed_error_stack.cpp.
References foedus::FixedErrorStack::output().

| std::string foedus::print_assert | ( | const char * | file, |
| const char * | func, | ||
| int | line, | ||
| const char * | description | ||
| ) |
Helper function to report what assertion failed.
Definition at line 28 of file assert_nd.cpp.
Referenced by print_assert_backtrace().

| void foedus::print_assert_backtrace | ( | const char * | file, |
| const char * | func, | ||
| int | line, | ||
| const char * | description | ||
| ) |
print_assert() + print_backtrace().
It also leaves the info in a global variable so that signal handler can show that later.
Definition at line 52 of file assert_nd.cpp.
References print_assert(), and print_backtrace().

| std::string foedus::print_backtrace | ( | ) |
Prints out backtrace.
This method is best-effort, maybe do nothing in some compiler/OS.
Definition at line 37 of file assert_nd.cpp.
References foedus::assorted::get_backtrace().
Referenced by foedus::ErrorStack::dump_and_abort(), foedus::memory::RoundRobinPageGrabBatch::grab(), print_assert_backtrace(), and foedus::UninitializeGuard::~UninitializeGuard().


| std::string foedus::static_recent_assert_backtrace |
Leaves recent crash information in a static global variable so that a signal handler can pick it.
Definition at line 50 of file assert_nd.cpp.
Referenced by get_recent_assert_backtrace().
| std::string foedus::static_recent_dump_and_abort |
Leaves recent dump information in a static global variable so that a signal handler can pick it.
Definition at line 59 of file error_stack.cpp.
Referenced by foedus::ErrorStack::get_recent_dump_and_abort().