Package org.jitterbit.application.worker

Examples of org.jitterbit.application.worker.ApplicationWorker


                if (currentPage.prepareForForwardNavigation()) {
                    EventQueue.invokeLater(saveJob);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }
View Full Code Here


        Runnable task = new ReadPageTask(pageNumber, callback);
        runBackgroundTask(task);
    }

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

        for (File file : filesToUpload) {
            if (isCancelled() || failed) {
                break;
            }
            setMessage(Strings.format("FileUpload.Job.UploadingFileStatus", file.getAbsolutePath()));
            ApplicationWorker w = Application.getWorker();
            Runnable task = getJobToRun(file);
            w.submitForParallelAndWait(task, callback);
        }
    }
View Full Code Here

    public void setFilter(EntityFilter filter) {
        this.filter = filter;
    }

    public void start() {
        ApplicationWorker worker = Application.getWorker();
        Runnable job = new SafeRunnable() {

            @Override
            public void run() {
                startImpl();
            }
        };
        worker.submitForParallel(job);
    }
View Full Code Here

                    IntegrationServer server = IntegrationServer.getInstance();
                    OperationQueueProvider call = server.getServerCall(OperationQueueProvider.class);
                    call.deleteSystemQueue(callback);
                }
            };
            ApplicationWorker w = Application.getWorker();
            w.submitForParallelAndWait(task, callback);
        }
View Full Code Here

            setEnabled(explorer.getEntityFactory() != null);
        }
       
        @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

            @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

        @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

        private void displayResult() {
            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

            return server.getGuid().equals(currentServer);
        }

        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

TOP

Related Classes of org.jitterbit.application.worker.ApplicationWorker

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.