libfoedus-core
FOEDUS Core Library
|
Restart manager, which recovers the state of database by invoking log-gleaner at start-up. More...
Restart manager, which recovers the state of database by invoking log-gleaner at start-up.
Definition at line 36 of file restart_manager.hpp.
#include <restart_manager.hpp>
Public Member Functions | |
RestartManager (Engine *engine) | |
~RestartManager () | |
RestartManager ()=delete | |
RestartManager (const RestartManager &)=delete | |
RestartManager & | operator= (const RestartManager &)=delete |
ErrorStack | initialize () override |
Acquires resources in this object, usually called right after constructor. More... | |
bool | is_initialized () const override |
Returns whether the object has been already initialized or not. More... | |
ErrorStack | uninitialize () override |
An idempotent method to release all resources of this object, if any. More... | |
![]() | |
virtual | ~Initializable () |
|
explicit |
Definition at line 22 of file restart_manager.cpp.
foedus::restart::RestartManager::~RestartManager | ( | ) |
Definition at line 25 of file restart_manager.cpp.
|
delete |
|
delete |
|
overridevirtual |
Acquires resources in this object, usually called right after constructor.
If and only if the return value was not an error, is_initialized() will return TRUE. This method is usually not idempotent, but some implementation can choose to be. In that case, the implementation class should clarify that it's idempotent. This method is responsible for releasing all acquired resources when initialization fails. This method itself is NOT thread-safe. Do not call this in a racy situation.
Implements foedus::Initializable.
Definition at line 30 of file restart_manager.cpp.
References foedus::DefaultInitializable::initialize().
|
overridevirtual |
Returns whether the object has been already initialized or not.
Implements foedus::Initializable.
Definition at line 31 of file restart_manager.cpp.
References foedus::DefaultInitializable::is_initialized().
|
delete |
|
overridevirtual |
An idempotent method to release all resources of this object, if any.
After this method, is_initialized() will return FALSE. Whether this method encounters an error or not, the implementation should make the best effort to release as many resources as possible. In other words, Do not leak all resources because of one issue. This method itself is NOT thread-safe. Do not call this in a racy situation.
Implements foedus::Initializable.
Definition at line 32 of file restart_manager.cpp.
References foedus::DefaultInitializable::uninitialize().