Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.ExecutionMonitor


        Map<String, String> conf = new HashMap<String, String>();
        ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<ExecutionMonitorProvider>(
                "testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader()));

        ExecutionMonitorProvider instance = profile.newInstance();
        ExecutionMonitor monitor = instance.newInstance(CONTEXT);
        monitor.open(3);
        try {
            monitor.progressed(1);
            monitor.progressed(1);
            monitor.progressed(1);
        } finally {
            monitor.close();
        }
    }
View Full Code Here


        conf.put(BasicMonitorProvider.KEY_STEP_UNIT, "0.1");
        ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<ExecutionMonitorProvider>(
                "testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader()));

        ExecutionMonitorProvider instance = profile.newInstance();
        ExecutionMonitor monitor = instance.newInstance(CONTEXT);
        monitor.open(100);
        try {
            for (int i = 0; i < 100; i++) {
                monitor.progressed(1);
            }
        } finally {
            monitor.close();
        }
    }
View Full Code Here

        conf.put(BasicMonitorProvider.KEY_STEP_UNIT, "0.5");
        ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<ExecutionMonitorProvider>(
                "testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader()));

        ExecutionMonitorProvider instance = profile.newInstance();
        ExecutionMonitor monitor = instance.newInstance(CONTEXT);
        monitor.open(100);
        try {
            for (int i = 0; i < 100; i++) {
                monitor.progressed(1);
            }
        } finally {
            monitor.close();
        }
    }
View Full Code Here

        FlowLogger log2 = new FlowLogger(context(CLEANUP), profile);
        log2.open(1);
        try {
            checkLines(log, l12, CLEANUP);
            ExecutionMonitor jm = log2.createJobMonitor("hoge", 1);
            jm.open(1);
            jm.close();
            log2.reportJobStatus("hoge", JobStatus.FAILED, new Exception());
        } finally {
            log2.close();
        }
        assertThat(log.isFile(), is(true));
View Full Code Here

TOP

Related Classes of com.asakusafw.yaess.core.ExecutionMonitor

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.