50 return "OperationStatus";
const String name() override
Name of operation used for exclusivity.
ContextPtr m_context
Pointer to Master context.
Holds Nagios-style program status information.
Abstract base class for ephemeral operations.
std::string String
A String is simply a typedef to std::string.
virtual size_t encoded_length() const
Returns serialized object length.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
EventPtr m_event
Pointer to client event (if any) that originated the operation.
OperationStatus(ContextPtr &context, EventPtr &event)
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
virtual void encode(uint8_t **bufp) const
Writes serialized representation of object to a buffer.
bool status(ContextPtr &context, Timer &timer, Status &status)
Runs a status check on the master.
void encode_i32(uint8_t **bufp, uint32_t val)
Encode a 32-bit integer in little-endian order.
Compatibility Macros for C/C++.
void set_status(const Hypertable::Status &status)
Sets status object.
Functions to serialize/deserialize primitives to/from a memory buffer.
size_t encoded_result_length() const override
Length of encoded operation result.
long long int Lld
Shortcut for printf formats.
Declarations for general-purpose utility functions.
void encode_result(uint8_t **bufp) const override
Encode operation result.
Response::Parameters::Status m_params
#define HT_INFOF(msg,...)
A timer class to keep timeout states across AsyncComm related calls.
Declarations for StatusPersister.
const String label() override
Human readable label for operation.
void execute() override
Executes (carries out) the operation.
void complete_ok(std::vector< MetaLog::EntityPtr > &additional)
String extensions and helpers: sets, maps, append operators etc.
Error codes, Exception handling, error logging.