Package com.alibaba.otter.node.etl.common.pipe.impl.http

Examples of com.alibaba.otter.node.etl.common.pipe.impl.http.HttpPipeKey


        localFileData.setPath(localFile.getPath());
        fileBatch.getFiles().add(localFileData);
        try {
            byte[] data = getBlock(10 * 1024);
            NioUtils.write(data, localFile);
            HttpPipeKey key = attachmentHttpPipe.put(fileBatch);
            File target = attachmentHttpPipe.get(key);
            byte[] getbytes = NioUtils.read(new File(target, localFile.getPath()));
            check(data, getbytes);
        } catch (IOException e) {
            want.fail();
View Full Code Here


        DbBatch dbBatch = new DbBatch();
        dbBatch.setRowBatch(rowBatch);
        dbBatch.setFileBatch(fileBatch);

        HttpPipeKey key = rowDataHttpPipe.put(dbBatch);
        DbBatch target = rowDataHttpPipe.get(key);

        want.bool(target.getRowBatch().getIdentity().equals(identity));
        want.object(target).notNull();
    }
View Full Code Here

                } else {
                    future = executorService.submit(new Callable<File>() {

                        public File call() throws Exception {
                            try {
                                HttpPipeKey pipeKey = (HttpPipeKey) key;
                                MDC.put(OtterConstants.splitPipelineLogFileKey,
                                        String.valueOf(pipeKey.getIdentity().getPipelineId()));
                                return attachmentHttpPipe.get(pipeKey);
                            } finally {
                                MDC.remove(OtterConstants.splitPipelineLogFileKey);
                            }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.node.etl.common.pipe.impl.http.HttpPipeKey

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.