22 #ifndef Hypertable_Master_OperationRecover_h
23 #define Hypertable_Master_OperationRecover_h
79 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
80 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
93 void read_rsml(std::vector<MetaLog::EntityPtr> &removable_move_ops);
97 std::vector<MetaLog::EntityPtr> &removable_move_ops);
125 #endif // Hypertable_Master_OperationRecover_h
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
vector< RangeState > m_system_states
std::shared_ptr< RangeServerConnection > RangeServerConnectionPtr
std::string String
A String is simply a typedef to std::string.
vector< RangeState > m_user_states
Declarations for Operation.
PageArena memory allocator for STL classes.
Carries out recovery operaton for a range server.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
vector< QualifiedRangeSpec > m_root_specs
void read_rsml(std::vector< MetaLog::EntityPtr > &removable_move_ops)
const String name() override
Name of operation used for exclusivity.
Declarations for QualifiedRangeSpec and QualifiedRangeSpecManaged.
const String label() override
Human readable label for operation.
void display_state(std::ostream &os) override
Write human readable operation state to output stream.
RangeServerConnectionPtr m_rsc
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Decode operation state.
void handle_split_shrunk(MetaLogEntityRange *range_entity, std::vector< MetaLog::EntityPtr > &removable_move_ops)
bool acquire_server_lock()
The PageArena allocator is simple and fast, avoiding individual mallocs/frees.
void execute() override
Executes (carries out) the operation.
vector< RangeState > m_root_states
OperationRecover(ContextPtr &context, RangeServerConnectionPtr &rsc, int flags=0)
Constructor.
void create_recovery_plan()
vector< QualifiedRangeSpec > m_system_specs
uint64_t m_hyperspace_handle
uint8_t encoding_version_state() const override
Returns version of encoding format of state.
vector< RangeState > m_metadata_states
vector< QualifiedRangeSpec > m_metadata_specs
const String & location() const
void clear_server_state()
Abstract base class for master operations.
virtual ~OperationRecover()
bool exclusive() override
Indicates if operation is exclusive.
vector< QualifiedRangeSpec > m_user_specs
size_t encoded_length_state() const override
Encoded length of operation state.
void encode_state(uint8_t **bufp) const override
Encode operation state.