Package org.jitterbit.application.ui.job

Examples of org.jitterbit.application.ui.job.UiJob


            @Override
            public void cancelled() {
                // Nothing to do
            }
        };
        UiJob job = new LoadStructuresJob(invoker, treeMapper.getTreeStructureCache(), true);
        job.submit();
    }
View Full Code Here


        }
    }

    @Override
    protected void prepareForRemoval() {
        UiJob job = model.getCurrentServerInteraction();
        if (job != null) {
            ApplicationUi.getJobManager().cancelJob(job);
        }
        super.prepareForRemoval();
    }
View Full Code Here

     */
    private class StructureLoader implements CallStructureRetriever {

        public synchronized void load() {
            WebServiceOperationInfo opInfo = getObject().getOperationInfo();
            UiJob job = new GetJtrJob(this, opInfo, getWaitService());
            job.submit();
        }
View Full Code Here

            serverManager.getLoginService().getConfiguration().setServerName(address.toString());
        } catch (IllegalServerAddressException ex) {
            externalCallback.caught(ex);
            return;
        }
        UiJob job = new LoginJob(credentials, externalCallback);
        job.submit();
    }
View Full Code Here

        r.sortOrder = SortOrder.DESCENDING;
        return r;
    }

    private void startJob(OperationLogRequest request) {
        UiJob job = new GetLogJob(model, logApi, request);
        model.setTalkingToServer(true);
        job.submit();
    }
View Full Code Here

        private final Object lock = new Object();

        @Override
        public void jobEnded(JobStatusChangedEvent evt) {
            UiJob job = evt.getJob();
            synchronized (lock) {
                runningProcesses.remove(job);
                if (runningProcesses.isEmpty()) {
                    onNoProcessRunning();
                }
View Full Code Here

            }
        }

        @Override
        public void jobStarted(JobStatusChangedEvent evt) {
            UiJob job = evt.getJob();
            synchronized (lock) {
                runningProcesses.add(job);
                onProcessesRunning();
            }
        }
View Full Code Here

        });
        // TODO: Notify callback if not runnable.
    }

    private void submitOperation(Operation operation, int timesToRun, Receiver<Long> callback) {
        UiJob job = new SubmitOperationJob(operation, timesToRun, callback);
        job.submit();
    }
View Full Code Here

        });
    }

    private void submitOperationWithSourceData(Operation operation, Reader sourceData,
                    Receiver<Long> callback) {
        UiJob job = new SubmitOperationJob(operation, sourceData, callback);
        job.submit();
    }
View Full Code Here

    private void getStatus() {
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                UiJob job = new GetEngineStatusJob(engine);
                job.submit(container, 125);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.job.UiJob

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.