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

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


*/
public class AbstractDelegateArbitrateEvent implements ArbitrateEvent {

    public ArbitrateMode chooseMode(Long pipelineId) {
        Pipeline pipeline = ArbitrateConfigUtils.getPipeline(pipelineId);
        ArbitrateMode arbitrateMode = pipeline.getParameters().getArbitrateMode();
        // 重新计算arbitrateMode
        ArbitrateMode result = null;
        switch (arbitrateMode) {
            case AUTOMATIC:
                // 1. 如果s/e/t/l都是由1台或者多台机器提供服务,则选择内存模式
                // 2. 如果s/e由一组机器,t/l由另一组机器提供服务,则选择rpc模式
                if (containAll(pipeline.getSelectNodes(), pipeline.getExtractNodes())
View Full Code Here

TOP

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

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.