18 #ifndef FOEDUS_LOG_LOG_MANAGER_HPP_
19 #define FOEDUS_LOG_LOG_MANAGER_HPP_
121 #endif // FOEDUS_LOG_LOG_MANAGER_HPP_
LoggerRef get_logger(LoggerId logger_id)
Returns a reference to the logger of the given ID.
LogManager & operator=(const LogManager &)=delete
MetaLogBuffer * get_meta_buffer()
MetaLogger * get_meta_logger()
void wakeup_loggers()
Wake up loggers if they are sleeping.
The pure-virtual interface to initialize/uninitialize non-trivial resources.
Forward declarations of classes in log manager package.
Epoch get_durable_global_epoch_weak() const
Non-atomic version of the method.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
bool is_initialized() const override
Returns whether the object has been already initialized or not.
ErrorStack uninitialize() override
An idempotent method to release all resources of this object, if any.
Forward declarations of classes in root package.
Brings error stacktrace information as return value of functions.
The information we maintain in savepoint manager and externalize to a file.
ErrorStack refresh_global_durable_epoch()
Called whenever there is a chance that the global durable epoch advances.
Typedefs of ID types used in log package.
Pimpl object of LogManager.
ErrorStack initialize() override
Acquires resources in this object, usually called right after constructor.
void copy_logger_states(savepoint::Savepoint *new_savepoint)
Fillup the given savepoint with the current information of the loggers.
A view of Logger object for other SOCs and master engine.
#define CXX11_FINAL
Used in public headers in place of "final" of C++11.
Database engine object that holds all resources and provides APIs.
Log Manager class that provides API to write/read transaction logs.
#define CXX11_OVERRIDE
Used in public headers in place of "override" of C++11.
ErrorCode wait_until_durable(Epoch commit_epoch, int64_t wait_microseconds=-1)
Synchronously blocks until the durable global epoch reaches the given commit epoch or the given durat...
Epoch get_durable_global_epoch() const
Returns the durable epoch of the entire engine.
#define CXX11_FUNC_DELETE
Used in public headers in place of " = delete" of C++11.
void announce_new_durable_global_epoch(Epoch new_epoch)
Sets the new global durable epoch and also wakes up threads that were waiting for it...
Forward declarations of classes in savepoint manager package.
uint16_t LoggerId
Typedef for an ID of Logger.
ErrorCode
Enum of error codes defined in error_code.xmacro.