Package org.jitterbit.integration.client.ui.operation.runner

Examples of org.jitterbit.integration.client.ui.operation.runner.OperationRunner


    }

    @Override
    public void execute(String[] params) throws CommandException {
        Operation op = page.getObject();
        OperationRunner runner = factory.newRunner();
        runner.run(op, 1, new Receiver<Long>() {

            @Override
            public void handle(Long opInstanceId) {
                openMonitor(opInstanceId);
            }
View Full Code Here


    private static class OperationRunnerFactoryImpl implements OperationRunnerFactory {

        @Override
        public OperationRunner newRunner() {
            return new OperationRunner() {

                @Override
                public void run(Operation op, int timesToRun, Receiver<Long> callback) {
                    SubmitOperationJob job = new SubmitOperationJob(op, 1, callback);
                    job.submit();
View Full Code Here

    public void runOperation(File file) {
        try {
            fileStore.update(file);
            OperationRunnerFactory factory = new InterchangeOperationRunnerFactory(view);
            OperationRunner runner = factory.newRunner();
            runner.runWithSourceData(opNode.getDataObject().getActivity(), new FileReader(file),
                            new MonitorLauncher());
        } catch (FileNotFoundException ex) {
            ErrorLog.attention(getClass(), "Failed to read the selected file.", ex);
        }
    }
View Full Code Here

        c.collect(activeObjects);
        return c.getOperationsToRun(appWin);
    }

    private void runOperations(List<Operation> opsToRun) {
        OperationRunner runner = factory.newRunner();
        for (Operation op : opsToRun) {
            runner.run(op, 1, OperationRunner.NO_CALLBACK);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.operation.runner.OperationRunner

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.