Package org.jitterbit.integration.client.mapping

Examples of org.jitterbit.integration.client.mapping.DataStructureToMappingTreeConverter$ConverterImpl


            @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
                // been set when we are ready to call displayLoadedStructures below.
                DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newInputStructureConverter();
                DataStructure input = invoker.getTransformation().getInputStructure();
                converter.getMappingStructure(input, inputCallback);
            }
        });
        if (isCancelled()) {
            return;
        }
View Full Code Here


        Future<?> outputFuture = worker.submitForParallel(new Runnable() {

            @Override
            public void run() {
                // See comment in thread for getting input JTR above.
                DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newOutputStructureConverter();
                DataStructure output = invoker.getTransformation().getOutputStructure();
                converter.getMappingStructure(output, outputCallback);
            }
        });
        try {
            outputFuture.get();
        } catch (ExecutionException e) {
View Full Code Here

        private void createInputStructure() {
            String message = "Refreshing the input structure";
            log(message);
            setMessage(message);
            DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newInputStructureConverter();
            converter.setLogger(logger);
            synchronized (syncLock) {
                input = converter.getMappingStructure(transformation.getInputStructure(), callback);
            }
        }
View Full Code Here

       
        private void createOutputStructure() {
            String message = "Refreshing the output structure";
            log(message);
            setMessage(message);
            DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newOutputStructureConverter();
            converter.setLogger(logger);
            synchronized (syncLock) {
                output = converter.getMappingStructure(transformation.getOutputStructure(), callback);
            }
        }
View Full Code Here

        ErrorLog.log(Migration.class, "Failed to cache transformation structures.", ex);
    }

    private MappingTreeStructure reloadInputStructure(Transformation tf) throws MigrationInitializationException {
        GetJtrCallback cb = new GetJtrCallback();
        DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newInputStructureConverter();
        MappingTreeStructure input = converter.getMappingStructure(tf.getInputStructure(), cb);
        if( !cb.succeeded ) {
            String msg = "Failed to load the source structure for the transformation \"" +
                tf.getName() + "\": ";
            Throwable th = cb.causeOfFailure;
            throw new MigrationInitializationException(msg + th.getMessage(), th);
View Full Code Here

        return input;
    }

    private MappingTreeStructure reloadOutputStructure(Transformation tf) throws MigrationInitializationException {
        GetJtrCallback cb = new GetJtrCallback();
        DataStructureToMappingTreeConverter converter = DataStructureToMappingTreeConverter.newOutputStructureConverter();
        MappingTreeStructure output = converter.getMappingStructure(tf.getOutputStructure(), cb);
        if( !cb.succeeded ) {
            String msg = "Failed to load the target structure for the transformation \"" +
                tf.getName() + "\": ";
            Throwable th = cb.causeOfFailure;
            throw new MigrationInitializationException(msg + th.getMessage(), th);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.mapping.DataStructureToMappingTreeConverter$ConverterImpl

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.