Package com.asakusafw.yaess.core.task

Examples of com.asakusafw.yaess.core.task.ExecutionTask$BatchScheduler


                System.out.printf("    %s%n", phase.getSymbol());
            }
            YSLOG.error(e, "E00001", Arrays.toString(args));
            return 1;
        }
        ExecutionTask task;
        try {
            task = ExecutionTask.load(conf.profile, conf.script, conf.arguments, conf.definitions);
        } catch (Exception e) {
            YSLOG.error(e, "E00002", conf);
            return 1;
        }
        YSLOG.info("I00001", conf);
        try {
            switch (conf.mode) {
            case BATCH:
                task.executeBatch(conf.batchId);
                break;
            case FLOW:
                task.executeFlow(conf.batchId, conf.flowId, conf.executionId);
                break;
            case PHASE:
                task.executePhase(conf.batchId, conf.flowId, conf.executionId, conf.phase);
                break;
            default:
                throw new AssertionError(conf.mode);
            }
            return 0;
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.core.task.ExecutionTask$BatchScheduler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.