58 int main(
int argc,
char **argv) {
62 init_with_policies<Policies>(argc, argv);
68 if (
has(
"induce-failure")) {
76 HT_FATALF(
"%s/conf/METADATA.xml is missing, aborting...",
79 HT_FATALF(
"%s/conf/RS_METRICS.xml is missing, aborting...",
86 int worker_count = get_i32(
"Hypertable.RangeServer.Workers");
95 int hyperspace_timeout = get_i32(
"Hyperspace.Timeout");
98 HT_ERROR(
"Unable to connect to hyperspace, exiting...");
99 quick_exit(EXIT_FAILURE);
106 = std::make_shared<Apps::RangeServer>(
properties, conn_manager,
109 Global::app_queue->join();
122 quick_exit(EXIT_FAILURE);
124 quick_exit(EXIT_SUCCESS);
static Comm * instance()
Creates/returns singleton instance of the Comm class.
Retrieves system information (hardware, installation directory, etc)
Meta::list< AppPolicy, FsBrokerPolicy, DefaultCommPolicy > Policies
The FailureInducer simulates errors.
PropertiesPtr properties
This singleton map stores all options.
static bool unlink(const String &fname)
Unlinks (deletes) a file or directory.
static ConnectionManagerPtr conn_manager
Helper class for printing usage banners on the command line.
Declarations for ReactorRunner.
static bool exists(const String &fname)
Checks if a file or directory exists.
static FailureInducer * instance
This is a singleton class.
Declarations for RangeServer.
static void close()
Cleanup function; called before leaving main()
int main(int argc, char **argv)
Provides access to the cluster ID.
bool has(const String &name)
Check existence of a configuration value.
static bool record_arrival_time
If set to true arrival time is recorded and passed into IOHandler::handle.
static Hyperspace::SessionPtr hyperspace
Helpers to compose init policies; allow to combine two policies into one.
Logging routines and macros.
Compatibility Macros for C/C++.
void parse_option(String spec)
Parses a spec string (as explained above) and stores it in an internal structure. ...
Initialization helper for applications.
Declarations for IndexUpdater.
#define HT_FATALF(msg,...)
Entry point to AsyncComm service.
Declarations for ConnectionManager.
Internet address wrapper classes and utility functions.
Declarations for ReactorFactory.
static String install_dir
The installation directory.
This is a generic exception class for Hypertable.
std::shared_ptr< RangeServer > RangeServerPtr
Shared smart pointer to RangeServer.
Declarations for ApplicationQueue.
std::shared_ptr< ConnectionManager > ConnectionManagerPtr
Smart pointer to ConnectionManager.
static Hypertable::ApplicationQueuePtr app_queue
Declarations for ClusterId.