Package com.alibaba.otter.shared.common.model.config.pipeline.PipelineParameter

Examples of com.alibaba.otter.shared.common.model.config.pipeline.PipelineParameter.PipeChooseMode


                        }
                    }
                });
            }
            try {
                PipeChooseMode pipeChooseMode = pipeline.getParameters().getPipeChooseType();
                if (pipeChooseMode.isAutomatic()) {
                    if (calculateSize(data) <= sizeThresold) {
                        keys.add(rowDataRpcPipe.put(data));
                    } else {
                        keys.add(rowDataHttpPipe.put(data));
                    }
                } else if (pipeChooseMode.isRpc()) {
                    keys.add(rowDataRpcPipe.put(data));
                } else if (pipeChooseMode.isHttp()) {
                    keys.add(rowDataHttpPipe.put(data));
                } else {
                    throw new PipeException("pipeChooseMode is error!" + pipeChooseMode);
                }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.common.model.config.pipeline.PipelineParameter.PipeChooseMode

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.