40 const uint8_t *ptr =
event->payload;
41 size_t remaining =
event->payload_len;
47 HT_INFOF(
"Entering OperationStop-%s state=%s",
68 HT_INFOF(
"Leaving OperationStop-%s state=%s",
77 return "OperationStop";
Retrieves system information (hardware, installation directory, etc)
The FailureInducer simulates errors.
ContextPtr m_context
Pointer to Master context.
Abstract base class for ephemeral operations.
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.
String format(const char *fmt,...)
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this...
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
Declarations for RangeServerClient.
const char * get_text(int32_t state)
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
void set_proxy(const String &str)
Sets address type to CommAddress::PROXY and proxy name to p.
void shutdown(const CommAddress &addr)
Issues a "shutdown" request.
Compatibility Macros for C/C++.
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
const String name() override
Name of operation used for exclusivity.
void execute() override
Executes (carries out) the operation.
OperationStop(ContextPtr &context, EventPtr &event)
DependencySet m_dependencies
Set of dependencies.
#define HT_INFOF(msg,...)
Lib::Master::Request::Parameters::Stop m_params
Request parmaeters.
Client interface to RangeServer.
This is a generic exception class for Hypertable.
void complete_ok(std::vector< MetaLog::EntityPtr > &additional)
String extensions and helpers: sets, maps, append operators etc.
Error codes, Exception handling, error logging.
void complete_error(int error, const String &msg, std::vector< MetaLog::EntityPtr > &additional)
Completes operation with error.
const String label() override
Human readable label for operation.
Address abstraction to hold either proxy name or IPv4:port address.
const string & server() const
Gets name of RangeServer to be stopped.
int code() const
Returns the error code.
Executes user-defined functions when leaving the current scope.