public static void main(String[] args) throws IOException { ProcedureWALPerformanceEvaluation tool = new ProcedureWALPerformanceEvaluation(); tool.setConf(UTIL.getConfiguration()); tool.run(args); } }
/** * Processes and validates command line options. */ @Override public void processOptions(CommandLine cmd) { numThreads = getOptionAsInt(cmd, NUM_THREADS_OPTION.getOpt(), DEFAULT_NUM_THREADS); numProcs = getOptionAsInt(cmd, NUM_PROCS_OPTION.getOpt(), DEFAULT_NUM_PROCS); numWals = getOptionAsInt(cmd, NUM_WALS_OPTION.getOpt(), DEFAULT_NUM_WALS); syncType = cmd.getOptionValue(SYNC_OPTION.getOpt(), DEFAULT_SYNC_OPTION); assert "hsync".equals(syncType) || "hflush".equals(syncType) || "nosync".equals(syncType): "sync argument can only accept one of these three values: hsync, hflush, nosync"; stateSize = getOptionAsInt(cmd, STATE_SIZE_OPTION.getOpt(), DEFAULT_STATE_SIZE); serializedState = new byte[stateSize]; setupConf(); }
@Override public int doWork() { try { setupProcedureStore(); ExecutorService executor = Executors.newFixedThreadPool(numThreads); Future<?>[] futures = new Future<?>[numThreads]; return EXIT_FAILURE; } finally { tearDownProcedureStore();
@Override public int doWork() { try { setupProcedureStore(); ExecutorService executor = Executors.newFixedThreadPool(numThreads); Future<?>[] futures = new Future<?>[numThreads]; return EXIT_FAILURE; } finally { tearDownProcedureStore();
public static void main(String[] args) throws IOException { ProcedureWALPerformanceEvaluation tool = new ProcedureWALPerformanceEvaluation(); tool.setConf(UTIL.getConfiguration()); tool.run(args); } }
/** * Processes and validates command line options. */ @Override public void processOptions(CommandLine cmd) { numThreads = getOptionAsInt(cmd, NUM_THREADS_OPTION.getOpt(), DEFAULT_NUM_THREADS); numProcs = getOptionAsInt(cmd, NUM_PROCS_OPTION.getOpt(), DEFAULT_NUM_PROCS); numWals = getOptionAsInt(cmd, NUM_WALS_OPTION.getOpt(), DEFAULT_NUM_WALS); syncType = cmd.getOptionValue(SYNC_OPTION.getOpt(), DEFAULT_SYNC_OPTION); assert "hsync".equals(syncType) || "hflush".equals(syncType) || "nosync".equals(syncType): "sync argument can only accept one of these three values: hsync, hflush, nosync"; stateSize = getOptionAsInt(cmd, STATE_SIZE_OPTION.getOpt(), DEFAULT_STATE_SIZE); serializedState = new byte[stateSize]; setupConf(); }
@Override public int doWork() { try { setupProcedureStore(); ExecutorService executor = Executors.newFixedThreadPool(numThreads); Future<?>[] futures = new Future<?>[numThreads]; return EXIT_FAILURE; } finally { tearDownProcedureStore();
public static void main(String[] args) throws IOException { ProcedureWALPerformanceEvaluation tool = new ProcedureWALPerformanceEvaluation(); tool.setConf(UTIL.getConfiguration()); tool.run(args); } }
/** * Processes and validates command line options. */ @Override public void processOptions(CommandLine cmd) { numThreads = getOptionAsInt(cmd, NUM_THREADS_OPTION.getOpt(), DEFAULT_NUM_THREADS); numProcs = getOptionAsInt(cmd, NUM_PROCS_OPTION.getOpt(), DEFAULT_NUM_PROCS); numWals = getOptionAsInt(cmd, NUM_WALS_OPTION.getOpt(), DEFAULT_NUM_WALS); syncType = cmd.getOptionValue(SYNC_OPTION.getOpt(), DEFAULT_SYNC_OPTION); assert "hsync".equals(syncType) || "hflush".equals(syncType) || "nosync".equals(syncType): "sync argument can only accept one of these three values: hsync, hflush, nosync"; stateSize = getOptionAsInt(cmd, STATE_SIZE_OPTION.getOpt(), DEFAULT_STATE_SIZE); serializedState = new byte[stateSize]; setupConf(); }