28 #ifndef Hypertable_Lib_RangeServer_Client_h
29 #define Hypertable_Lib_RangeServer_Client_h
54 namespace RangeServer {
85 const String &row, int32_t flags);
108 const String &row, int32_t flags,
120 bool needs_compaction);
132 bool needs_compaction,
Timer &timer);
140 const vector<QualifiedRangeSpec *> &ranges,
141 std::map<QualifiedRangeSpec, int> &response_map);
383 const String &pseudo_table_name,
const String &outfile);
479 const String &recover_location, int32_t plan_generation,
480 int32_t type,
const vector<int32_t> &fragments,
482 int32_t replay_timeout);
493 int32_t plan_generation,
494 const vector<int32_t> &fragments,
495 const vector<QualifiedRangeSpec> &range_specs,
496 const vector<RangeState> &range_states);
521 const String &location, int32_t plan_generation,
522 const vector<QualifiedRangeSpec> &ranges,
534 const String &location, int32_t plan_generation,
535 const vector<QualifiedRangeSpec> &ranges,
567 bool needs_compaction, int32_t timeout_ms);
575 ScanBlock &scan_block, int32_t timeout_ms);
584 const RangeSpec &range, int32_t timeout_ms);
600 #endif // Hypertable_Lib_RangeServer_Client_h
A memory buffer of static size.
void status(const CommAddress &addr, Status &status)
Issues a "status" request.
Client(Comm *comm, int32_t timeout_ms=0)
void create_scanner(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range, const ScanSpec &scan_spec, DispatchHandler *handler)
Issues a "create scanner" request asynchronously.
void phantom_prepare_ranges(const CommAddress &addr, int64_t op_id, const String &location, int32_t plan_generation, const vector< QualifiedRangeSpec > &ranges, int32_t timeout)
Issues a "phantom_prepare_ranges" synchronous request.
void drop_range(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range, DispatchHandler *handler)
Issues an asynchronous "drop range" request asynchronously.
Holds Nagios-style program status information.
std::string String
A String is simply a typedef to std::string.
void heapcheck(const CommAddress &addr, String &outfile)
Issues a "heapcheck" request.
void commit_log_sync(const CommAddress &addr, uint64_t cluster_id, const TableIdentifier &table, DispatchHandler *handler)
Issues a "commit_log_sync" request asynchronously.
Abstract base class for application dispatch handlers registered with AsyncComm.
void update(const CommAddress &addr, uint64_t cluster_id, const TableIdentifier &table, int32_t count, StaticBuffer &buffer, int32_t flags, DispatchHandler *handler)
Issues an "update" request asynchronously.
Declarations for SystemVariable.
void table_maintenance_enable(const CommAddress &addr, const TableIdentifier &table, DispatchHandler *handler)
Issues an asynchronous RangeServer::table_maintenance_enable().
Declarations for TableIdentifier and TableIdentifierManaged.
void dump_pseudo_table(const CommAddress &addr, const TableIdentifier &table, const String &pseudo_table_name, const String &outfile)
void acknowledge_load(const CommAddress &addr, const vector< QualifiedRangeSpec * > &ranges, std::map< QualifiedRangeSpec, int > &response_map)
Issues a synchronous "acknowledge load" request for multiple ranges.
void do_create_scanner(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range, const ScanSpec &scan_spec, ScanBlock &scan_block, int32_t timeout_ms)
void table_maintenance_disable(const CommAddress &addr, const TableIdentifier &table, DispatchHandler *handler)
Issues an asynchronous RangeServer::table_maintenance_disable() request.
void dump(const CommAddress &addr, String &outfile, bool nokeys)
Scan predicate and control specification.
void replay_fragments(const CommAddress &addr, int64_t op_id, const String &recover_location, int32_t plan_generation, int32_t type, const vector< int32_t > &fragments, const Lib::RangeServerRecovery::ReceiverPlan &plan, int32_t replay_timeout)
Issues a synchronous "replay_fragments" request.
Declarations for DispatchHandler.
Declarations for QualifiedRangeSpec and QualifiedRangeSpecManaged.
Declarations for RangeState.
void fetch_scanblock(const CommAddress &addr, int32_t scanner_id, DispatchHandler *handler)
Issues a "fetch scanblock" request asynchronously.
std::shared_ptr< Client > ClientPtr
Smart pointer to Client.
std::shared_ptr< CommBuf > CommBufPtr
Smart pointer to CommBuf.
void shutdown(const CommAddress &addr)
Issues a "shutdown" request.
void phantom_commit_ranges(const CommAddress &addr, int64_t op_id, const String &location, int32_t plan_generation, const vector< QualifiedRangeSpec > &ranges, int32_t timeout)
Issues a "phantom_commit_ranges" synchronous request.
void do_drop_table(const CommAddress &addr, const TableIdentifier &table, int32_t timeout_ms)
void destroy_scanner(const CommAddress &addr, int32_t scanner_id, DispatchHandler *handler)
Issues a "destroy scanner" request asynchronously.
A memory buffer of static size.
void set_default_timeout(int32_t timeout_ms)
Sets the default client connection timeout.
void phantom_update(const CommAddress &addr, const String &location, int32_t plan_generation, const QualifiedRangeSpec &range, int32_t fragment, StaticBuffer &updates, DispatchHandler *handler)
Issues a "phantom_update" asynchronous request.
void do_get_statistics(const CommAddress &addr, std::vector< SystemVariable::Spec > &specs, int64_t generation, StatsRangeServer &stats, int32_t timeout_ms)
void relinquish_range(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range)
Issues a "relinquish range" request synchronously.
Declarations for RangeSpec and RangeSpecManaged.
Encapsulates a block of scan results.
void get_statistics(const CommAddress &addr, std::vector< SystemVariable::Spec > &specs, int64_t generation, StatsRangeServer &stats)
Issues an synchronous "get_statistics" request.
Entry point to AsyncComm service.
void compact(const CommAddress &addr, const TableIdentifier &table, const String &row, int32_t flags)
Issues a "compact" request synchronously.
Declarations for CommBuf.
void set_state(const CommAddress &addr, std::vector< SystemVariable::Spec > &specs, int64_t generation, DispatchHandler *handler, Timer &timer)
Issues an asynchronous "set_state" request with timer.
void phantom_load(const CommAddress &addr, const String &location, int32_t plan_generation, const vector< int32_t > &fragments, const vector< QualifiedRangeSpec > &range_specs, const vector< RangeState > &range_states)
Issues a "phantom_load" synchronous request.
Client interface to RangeServer.
void drop_table(const CommAddress &addr, const TableIdentifier &table, DispatchHandler *handler)
Issues a "drop table" request asynchronously.
Internet address wrapper classes and utility functions.
A timer class to keep timeout states across AsyncComm related calls.
Declarations for ScanBlock.
void do_relinquish_range(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range, int32_t timeout_ms)
void do_status(const CommAddress &addr, Status &status, int32_t timeout_ms)
Qualified (with table identifier) range specification.
void update_schema(const CommAddress &addr, const TableIdentifier &table, const String &schema, DispatchHandler *handler)
Issues a "update schema" request asynchronously.
int32_t default_timeout() const
void do_destroy_scanner(const CommAddress &addr, int32_t scanner_id, int32_t timeout_ms)
void load_range(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range_spec, const RangeState &range_state, bool needs_compaction)
Issues a synchronous "load range" request.
void send_message(const CommAddress &addr, CommBufPtr &cbp, DispatchHandler *handler, int32_t timeout_ms)
void do_fetch_scanblock(const CommAddress &addr, int32_t scanner_id, ScanBlock &scan_block, int32_t timeout_ms)
int32_t m_default_timeout_ms
Address abstraction to hold either proxy name or IPv4:port address.
void do_load_range(const CommAddress &addr, const TableIdentifier &table, const RangeSpec &range_spec, const RangeState &range_state, bool needs_compaction, int32_t timeout_ms)
void wait_for_maintenance(const CommAddress &addr)
Issues a "wait_for_maintenance" request.
RangeServer recovery receiver plan.