Examples of submitForParallel()


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

     */
    public void handlePotentialJitterpack(final File file) {
        startWait();
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(ApplicationWorker.GUARD.protect(new Runnable() {

                @Override
                public void run() {
                    handleImpl(file);
                }
View Full Code Here

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

     */
    public void displayDocumentation(WebServiceInfo wsInfo, WebServiceOperationInfo opInfo) {
        Runnable job = getExtractionJob(wsInfo, opInfo);
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(job);
        } else {
            job.run();
        }
    }
   
View Full Code Here

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

     * @param callback
     *            a callback that will be notified when the packing process has completed.
     */
    public void pack(ExportJitterPackUi exportUi, CallbackResult callback) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new PackJob(exportUi, callback));
    }

    /**
     * Unpacks the specified <code>JitterPack</code>. The unpacking will typically be done
     * asynchronously, and this method will return immediately. The specified callback is notified
View Full Code Here

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

                unpackImpl(jitterpack, parameters, destinationFolder, callback);
            }
        };
        if (EventQueue.isDispatchThread()) {
            ApplicationWorker worker = Application.getWorker();
            worker.submitForParallel(task);
        } else {
            task.run();
        }
    }
View Full Code Here

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

        ApplicationLog.getMainLogger().info("The user cancelled unpacking the jitterpak");
    }

    public void extractDescriptor(File file, ImportParameters params, ExtractDescriptorCallback callback) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new DescriptorExtractor(file, params, callback));
    }


    private static final class PackJob implements Runnable {
View Full Code Here

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

    }

    @Override
    public void exportMappings(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                exportMappingsImpl(tf);
            }
View Full Code Here

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

    }

    @Override
    public void exportMultipleFolders(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                exportMultipleFoldersImpl(tf);
            }
View Full Code Here

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

    }

    @Override
    public void importMappings(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                importMappingsImpl(tf);
            }
View Full Code Here

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

    }

    @Override
    public void importMultipleFolders(final Transformation tf) {
        ApplicationWorker worker = Application.getWorker();
        worker.submitForParallel(new ApplicationWorker.SafeRunnable() {

            @Override
            public void run() {
                importMultipleFoldersImpl(tf);
            }
View Full Code Here

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

            @Override
            public void run() {
                svc.loadSourceData(new CallbackResultAdapter() {/**/});
            }
        };
        worker.submitForParallel(ApplicationWorker.GUARD.protect(task));
    }

}
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.