Used to implement failure recovery. More...
#include <Checkpointer.h>
Public Member Functions | |
virtual void | save_metadata (std::string &state)=0 |
Serialize the metadata. | |
virtual std::string | load_metadata ()=0 |
Load the metadata. | |
virtual void | checkpoint ()=0 |
Serialize other necessary data structures. |
Used to implement failure recovery.
The checkpointer interface. A checkpointer object helps create a checkpoint and also to load from a checkpoint
A checkpointer has two things: 1. Metadata - (Ex.: The iteration at which this checkpoint was created) 2. The method to serialize the necessary data structures to disk
virtual void Checkpointer::checkpoint | ( | ) | [pure virtual] |
Serialize other necessary data structures.
Implemented in Hadoop_Checkpointer, and Local_Checkpointer.
virtual std::string Checkpointer::load_metadata | ( | ) | [pure virtual] |
Load the metadata.
Implemented in Local_Checkpointer.
virtual void Checkpointer::save_metadata | ( | std::string & | state | ) | [pure virtual] |
Serialize the metadata.
Implemented in Local_Checkpointer.