Package com.dtolabs.rundeck.core.execution.dispatch

Examples of com.dtolabs.rundeck.core.execution.dispatch.DispatcherResultImpl


        //fill
        Map<String, NodeStepResult> resultsMap = new HashMap<String, NodeStepResult>();
        NodeEntryImpl node = new NodeEntryImpl("node1");
        NodeStepResultImpl stepResult = new NodeStepResultImpl(node);
        resultsMap.put("node1", stepResult);
        failedMap.put(1, NodeDispatchStepExecutor.wrapDispatcherResult(new DispatcherResultImpl(resultsMap, false)));

        Map<String, Collection<StepExecutionResult>> stringCollectionMap = strategy
                .convertFailures(failedMap);

        //assert
View Full Code Here


        //add a new wrapped DispatcherResults for each original step
        int x = 0;
        for (final HashMap<String, NodeStepResult> map : mergedStepResults) {
            Boolean success = successes.get(x);
            DispatcherResult r = new DispatcherResultImpl(map, null != success ? success : false);
            results.add(NodeDispatchStepExecutor.wrapDispatcherResult(r));
            x++;
        }

        //merge failures for each step
        for (final Integer integer : mergedStepFailures.keySet()) {
            Map<String, NodeStepResult> map = mergedStepFailures.get(integer);

            DispatcherResult r = new DispatcherResultImpl(map, false);
            stepFailures.put(integer, NodeDispatchStepExecutor.wrapDispatcherResult(r));
        }
    }
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.execution.dispatch.DispatcherResultImpl

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.