Examples of submitForParallel()


Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        runBackgroundTask(task);
    }

    private void runBackgroundTask(Runnable task) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(task);
    }

    private void handleReadError(Exception ex) {
        ErrorLog.attention(ChunkedTextFileViewer.class, "An error occurred while reading from the file.", ex);
    }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            @Override
            public void run() {
                startImpl();
            }
        };
        worker.submitForParallel(job);
    }

    /**
     * Provides this tester with an <code>EntityPageDisplayer</code> that it can use to interact
     * with any open pages for the items to test.
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        }
       
        @Override
        public void actionPerformed(ActionEvent evt) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

                @Override
                public void run() {
                    UiEntityFactory factory = explorer.getEntityFactory();
                    factory.createEntity(entityType, false, new Callback() {
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            @Override
            public void deployComplete(DeployResult deployResult) {
                Runnable job = new CompletedJob(managedProject, deployResult);
                if (EventQueue.isDispatchThread()) {
                    ApplicationWorker w = Application.getWorker();
                    w.submitForParallel(ApplicationWorker.GUARD.protect(job));
                } else {
                    job.run();
                }
                externalCallback.deployComplete(deployResult);
            }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        @Override
        public void deployComplete(DeployResult deployResult) {
            Runnable job = new CompletedJob(project, deployData, deployResult);
            if (EventQueue.isDispatchThread()) {
                ApplicationWorker w = Application.getWorker();
                w.submitForParallel(ApplicationWorker.GUARD.protect(job));
            } else {
                job.run();
            }
        }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            DeployLog.LOG.fine("Displaying the deploy result");
            // If there are any warnings we display them in a popup dialog, otherwise we just show a message
            // telling the user deploy was successful. While that dialog is showing we do the necessary
            // post-deploy processing in the background:
            ApplicationWorker w = Application.getWorker();
            w.submitForParallel(new ApplicationWorker.SafeRunnable() {
              
                @Override
                public void run() {
                    DeployResultDisplayer.display(results, project);
                }
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        }

        private void refreshFromCurrentServer() {
            final PipelinePluginCacheUpdateCall updateCall = createUpdateCall();
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(ApplicationWorker.GUARD.protect(new Runnable() {

                @Override
                public void run() {
                    try {
                        updateCall.call();
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

            public void run() {
                uploadRemoteWsdlSynchronously(url, callback);
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(uploadJob);
    }

    /**
     * Uploads a remote WSDL to a jitterbit server. This call is synchronous - the uploading takes
     * place in the calling thread.
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        running = true;
        this.callback = callback;
        notifierThread = Executors.newFixedThreadPool(1);
        fileTraverser = new FileTraverser(root, recursively, params, applyExtensionFilter);
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(ApplicationWorker.GUARD.protect(fileTraverser));
    }

    @Override
    public synchronized void stop() {
        if (!running) {
View Full Code Here

Examples of org.jitterbit.application.worker.ApplicationWorker.submitForParallel()

        }
    }

    private void runJob() {
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(ApplicationWorker.GUARD.protect(actionJob));
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.