28 #ifndef Hypertable_Master_OperationCompact_h
29 #define Hypertable_Master_OperationCompact_h
71 const std::string
name()
override;
76 const std::string
label()
override;
139 void decode_state(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
141 void decode_state_old(uint8_t version,
const uint8_t **bufp,
size_t *remainp)
override;
170 #endif // Hypertable_Master_OperationCompact_h
std::set< String > StringSet
STL Set managing Strings.
void execute() override
Carries out the manual compaction operation.
void initialize_dependencies()
Initializes dependency graph state.
void encode_state(uint8_t **bufp) const override
Writes serialized encoding of object state.
Declarations for Operation.
OperationCompact(ContextPtr &context, const MetaLog::EntityHeader &header_)
Constructor for constructing object from MetaLog entry.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
StringSet m_completed
Set of range servers that have completed operation.
Request parameters for compact operation.
Declarations for Compact request parameters.
size_t encoded_length_state() const override
Returns serialized state length.
virtual ~OperationCompact()
Destructor.
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
Carries out a manual compaction operation.
std::string m_id
Table identifier
Lib::Master::Request::Parameters::Compact m_params
Request parmaeters.
StringSet m_servers
Set of participating range servers.
void decode_state_old(uint8_t version, const uint8_t **bufp, size_t *remainp) override
const std::string label() override
Returns descriptive label for operation.
uint8_t encoding_version_state() const override
Returns version of encoding format of state.
Abstract base class for master operations.
void decode_state(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized encoding of object state.
const std::string name() override
Returns name of operation ("OperationCompact")
void display_state(std::ostream &os) override
Writes human readable representation of object to output stream.
String extensions and helpers: sets, maps, append operators etc.