Package org.jitterbit.integration.debug.client.file

Examples of org.jitterbit.integration.debug.client.file.DataFileIdentifier


            try {
                String typeName = parts[1].toUpperCase();
                DataFileType type = DataFileType.valueOf(typeName);
                int instance = Integer.parseInt(parts[2]);
                int chunk = Integer.parseInt(parts[3]);
                return new DataFileIdentifier(null, txId, type, instance, chunk);
            } catch (RuntimeException e) {
                ErrorLog.internal(DataFileName.class,
                                "Transformation data file name with unexpected name: " + fileName, e);
            }
        }
View Full Code Here


        this.charset = charset;
    }

    public void openFile(DataFilesInfo info) {
        OperationId opId = info.getOperationId();
        DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), fileType, 1, 1);
        Worker worker = new Worker(fileId);
        worker.execute();
    }
View Full Code Here

        }
        synchronized (this) {
            deleteAllDataFiles();
            setFilesInfo(info);
            if (result != null) {
                DataFileIdentifier fileId = DataFileIdentifier.forLoadSource(result.getTransformationId());
                addDataFile(guid, fileId, result.getSourceData());
            }
        }
        return info;
    }
View Full Code Here

                // Test Operation, however, and is currently viewing the data for another
                // chunk (the second, say), and does a Test Transformation (maybe after
                // having changed a mapping), we really need to use that chunk number in order
                // for the displayed result to make sense.
                OperationId opId = info.getOperationId();
                DataFileIdentifier fileId = new DataFileIdentifier(opId, tx.getID(), DataFileType.SOURCE, 1, 1);
                if (info.contains(fileId)) {
                    return new SourceDataIdentifier(info.getServerInfo(), info.getGuid());
                }
            }
            return null;
View Full Code Here

        }
        synchronized (this) {
            removeTargetFiles();
            setFilesInfo(info);
            if (result != null) {
                DataFileIdentifier linkFileId = new DataFileIdentifier(null, tx.getID(), DataFileType.LINK, 1, 1);
                addDataFile(guid, linkFileId, result.getLinkFile());
                DataFileIdentifier targetFileId = new DataFileIdentifier(null, tx.getID(), DataFileType.TARGET, 1, 1);
                addDataFile(guid, targetFileId, result.getTargetFile());
            }
        }
        return info;
    }
View Full Code Here

        }

        @Override
        public boolean accept(File pathname) {
            String fileName = pathname.getName();
            DataFileIdentifier id = DataFileName.toIdentifier(fileName, txId);
            return !loadSourceId.equals(id);
        }
View Full Code Here

    private void updateEnabledState(DataFilesInfo info) {
        boolean enabled;
        if (info == null) {
            enabled = false;
        } else {
            DataFileIdentifier fileId = new DataFileIdentifier(info.getOperationId(), page.getObject().getID(),
                            fileType, 1, 1);
            enabled = info.contains(fileId);
        }
        setEnabledSafely(enabled);
    }
View Full Code Here

public final class DataFileNameJUnitTest {

    @Test
    public void ensureToIdentifierWorks() {
        TransformationId txId = new TransformationId();
        DataFileIdentifier originalFileId = new DataFileIdentifier(null, txId, DataFileType.SOURCE, 1, 1);
        String name = DataFileName.fromIdentifier(originalFileId);
        DataFileIdentifier restoredFileId = DataFileName.toIdentifier(name, txId);
        assertEquals(originalFileId, restoredFileId);
    }
View Full Code Here

        public TestFileOpener(DataFilesInfo info, boolean startWithSourceFile) {
            this.startWithSourceFile = startWithSourceFile;
            OperationId opId = info.getOperationId();
            TransformationId txId = page.getObject().getID();
            sourceFileId = new DataFileIdentifier(opId, txId, DataFileType.SOURCE, 1, 1);
            linkFileId = new DataFileIdentifier(opId, txId, DataFileType.LINK, 1, 1);
            targetFileId = new DataFileIdentifier(opId, txId, DataFileType.TARGET, 1, 1);
        }
View Full Code Here

        private void openSourceFile() {
            assert EventQueue.isDispatchThread();
            if (hasPageBeenClosed()) {
                return;
            }
            DataFileIdentifier fileId = DataFileIdentifier.forLoadSource(page.getObject().getID());
            fileRetriever.retrieveDataFile(fileId, new Receiver<DataFileRetriever.Result>() {

                @Override
                public void handle(Result result) {
                    sourceFile = result.dataFile;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.debug.client.file.DataFileIdentifier

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.