public static void main(String[] vargs) throws Exception {
if (ClassUtil.isAssertsEnabled()) {
LOG.warn("\n" + HStore.getAssertWarning());
}
ArgumentsParser args = ArgumentsParser.load(vargs,
ArgumentsParser.PARAM_CATALOG,
ArgumentsParser.PARAM_SITE_ID,
ArgumentsParser.PARAM_CONF
);
// HStoreSite Stuff
final int site_id = args.getIntParam(ArgumentsParser.PARAM_SITE_ID);
Thread t = Thread.currentThread();
t.setName(HStoreThreadManager.getThreadName(site_id, null, "main"));
HStoreConf hstore_conf = HStoreConf.initArgumentsParser(args);
if (debug.val)
LOG.debug("HStoreConf Parameters:\n" + HStoreConf.singleton().toString(true));
HStoreSite hstore_site = HStore.initialize(args.catalogContext, site_id, hstore_conf);
// ----------------------------------------------------------------------------
// Workload Trace Output
// ----------------------------------------------------------------------------
if (args.hasParam(ArgumentsParser.PARAM_WORKLOAD_OUTPUT)) {
ProcedureProfiler.profilingLevel = ProcedureProfiler.Level.INTRUSIVE;
String traceClass = Workload.class.getName();
String tracePath = args.getParam(ArgumentsParser.PARAM_WORKLOAD_OUTPUT) + "-" + site_id;
String traceIgnore = args.getParam(ArgumentsParser.PARAM_WORKLOAD_PROC_EXCLUDE);
ProcedureProfiler.initializeWorkloadTrace(args.catalog, traceClass, tracePath, traceIgnore);
LOG.info("Enabled workload logging '" + tracePath + "'");
}
if (args.thresholds != null) hstore_site.setThresholds(args.thresholds);