Class Backup

Class Documentation

class Backup

Public Functions

uint64_t sequence() const

Get the sequence number for this backup.

Backup &sequence(uint64_t seq)

Set the sequence number for this backup.

const std::string &state() const

Get the serialized state for this backup.

Backup &state(std::string new_state)

Set the serialized state for this backup.

Public Static Functions

static Backup make(uint64_t seq, std::string state)

Make a Backup state

Parameters:
  • seq[in] Sequence number. The Backup from this phase with the highest sequence number will be held onto until a Backup with a higher sequence number is issued.

  • state[in] A serialization of the phase’s state. This will be used by Activator when restoring a Task.