22 #ifndef Hypertable_Master_OperationBalance_h
23 #define Hypertable_Master_OperationBalance_h
48 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
49 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
65 #endif // Hypertable_Master_OperationBalance_h
const String label() override
Human readable label for operation.
void display_state(std::ostream &os) override
Write human readable operation state to output stream.
std::string String
A String is simply a typedef to std::string.
std::shared_ptr< BalancePlan > BalancePlanPtr
Declarations for Operation.
const String name() override
Name of operation used for exclusivity.
virtual ~OperationBalance()
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
void encode_state(uint8_t **bufp) const override
Encode operation state.
BalancePlanPtr m_plan
Balance plan.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
void execute() override
Executes (carries out) the operation.
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Decode operation state.
size_t encoded_length_state() const override
Encoded length of operation state.
OperationBalance(ContextPtr &context)
Declarations for Balance request parameters.
Lib::Master::Request::Parameters::Balance m_params
Request parmaeters.
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Abstract base class for master operations.
uint8_t encoding_version_state() const override
Returns version of encoding format of state.
void initialize_dependencies()
Request parameters for balance operation.
bool exclusive() override
Indicates if operation is exclusive.