Package com.asakusafw.yaess.core

Examples of com.asakusafw.yaess.core.ExecutionMonitorProvider


    public void simple() throws Exception {
        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);
View Full Code Here


        Map<String, String> conf = new HashMap<String, String>();
        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);
            }
View Full Code Here

        Map<String, String> conf = new HashMap<String, String>();
        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);
            }
View Full Code Here

        }
        if (yaessArguments == null) {
            throw new IllegalArgumentException("yaessArguments must not be null"); //$NON-NLS-1$
        }
        LOG.debug("Loading execution monitor feature");
        ExecutionMonitorProvider monitors = profile.getMonitors().newInstance();

        LOG.debug("Loading execution lock feature");
        ExecutionLockProvider locks = profile.getLocks().newInstance();

        LOG.debug("Loading job scheduling feature");
View Full Code Here

TOP

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

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.