Package org.jitterbit.application.worker

Examples of org.jitterbit.application.worker.ApplicationWorker


        editor.setEntityExplorerSupport(createExplorerSupport());
        runEditor(editor, st);
    }
   
    private void runEditor(final TransformationEditor editor, final SourceTarget st) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                if (st == SourceTarget.Source) {
                    editor.editInputStructure();
View Full Code Here


    }
   
    private void retrieveInputStructure() throws InterruptedException {
        setMessage(TreeStrings.get("LoadStructures.Input"));
        inputCallback = new Callback(true);
        ApplicationWorker worker = Application.getWorker();
        Future<?> inputFuture = worker.submitForParallel(new Runnable() {

            @Override
            public void run() {
                // We do not care about the return-value here. Instead we let the input
                // callback set the input JTR. That way we ensure that the input JTR has
View Full Code Here

    }
   
    private void retrieveOutputStructure() throws InterruptedException {
        setMessage(TreeStrings.get("LoadStructures.Output"));
        outputCallback = new Callback(false);
        ApplicationWorker worker = Application.getWorker();
        Future<?> outputFuture = worker.submitForParallel(new Runnable() {

            @Override
            public void run() {
                // See comment in thread for getting input JTR above.
                DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newOutputStructureConverter();
View Full Code Here

    }

    private void readCachedObjectClasses(LdapLocation loc) {
        if (loc != null) {
            Runnable task = new CacheReaderTask(loc);
            ApplicationWorker worker = Application.getWorker();
            worker.submitForSequential(task);
        } else {
            model.setObjectClasses(new ObjectClassDefinition[0]);
        }
    }
View Full Code Here

                    XmlFileViewer viewer = XmlFileViewer.getViewer(appWin);
                    viewer.viewFile(tempFile);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(job);
    }
View Full Code Here


    private class NewEntityCreator implements UiEntityFactory.Callback {

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

                @Override
                public void run() {
                    entityFactory.createEntity(entityType, true, NewEntityCreator.this);
                }
View Full Code Here

                    waitLock.release();
                }
            }
        };
        Runnable loader = new Loader(callback, waitLock);
        ApplicationWorker worker = Application.getWorker();
        SafeRunnable task = ApplicationWorker.GUARD.protect(loader);
        worker.submitForParallel(task);
    }
View Full Code Here

        public void actionPerformed(ActionEvent e) {
            final OperationLogEntry selected = getSelectedEntry();
            if (selected == null) {
                return;
            }
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

                @Override
                public void run() {
                    doSave(selected);
                }
View Full Code Here

                } else {
                    stopWait(waitLock);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }
View Full Code Here

                } else {
                    stopWait(waitLock);
                }
            }
        };
        ApplicationWorker w = Application.getWorker();
        w.submitForParallel(task);
    }
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.