Search in sources :

Example 1 with DCCTaskExecutionEngine

use of com.github.diegopacheco.dynomite.cluster.checker.tasks.engine.DCCTaskExecutionEngine in project dynomite-cluster-checker by diegopacheco.

the class DynomiteClusterCheckerMain method main.

public static void main(String[] args) {
    Chronometer stopWatch = new Chronometer();
    try {
        stopWatch.start();
        Boolean isTelemetryMode = isTelemtryModeSet(args) ? true : false;
        DCCTaskExecutionEngine dcc = new DCCTaskExecutionEngine();
        String jsonResult = dcc.run(extractArg(0, args), isTelemetryMode);
        logger.info(jsonResult);
    } catch (Exception e) {
        logger.error("Error: " + e);
    } finally {
        stopWatch.stop();
        logger.info("--");
        logger.info(stopWatch.getDiffAsSecondsString());
        System.exit(0);
    }
}
Also used : Chronometer(com.github.diegopacheco.dynomite.cluster.checker.util.Chronometer) DCCTaskExecutionEngine(com.github.diegopacheco.dynomite.cluster.checker.tasks.engine.DCCTaskExecutionEngine)

Aggregations

DCCTaskExecutionEngine (com.github.diegopacheco.dynomite.cluster.checker.tasks.engine.DCCTaskExecutionEngine)1 Chronometer (com.github.diegopacheco.dynomite.cluster.checker.util.Chronometer)1