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

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


    public void doAdd(@FormGroup("pipelineInfo") Group pipelineInfo,
                      @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                      @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                      HttpSession session, Navigator nav) throws Exception {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here


    public void doEdit(@FormGroup("pipelineInfo") Group pipelineInfo,
                       @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                       @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                       HttpSession session, Navigator nav) {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here

    public List<EventData> parse(Long pipelineId, List<Entry> datas) throws SelectException {
        List<EventData> eventDatas = new ArrayList<EventData>();
        Pipeline pipeline = configClientService.findPipeline(pipelineId);
        List<Entry> transactionDataBuffer = new ArrayList<Entry>();
        // hz为主站点,us->hz的数据,需要回环同步会us。并且需要开启回环补救算法
        PipelineParameter pipelineParameter = pipeline.getParameters();
        boolean enableLoopbackRemedy = pipelineParameter.isEnableRemedy() && pipelineParameter.isHome()
                                       && pipelineParameter.getRemedyAlgorithm().isLoopback();
        boolean isLoopback = false;
        boolean needLoopback = false; // 判断是否属于需要loopback处理的类型,只处理正常otter同步产生的回环数据,因为会有业务方手工屏蔽同步的接口,避免回环

        long now = new Date().getTime();
        try {
View Full Code Here

    public void doAdd(@FormGroup("pipelineInfo") Group pipelineInfo,
                      @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                      @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                      HttpSession session, Navigator nav) throws Exception {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here

    public void doEdit(@FormGroup("pipelineInfo") Group pipelineInfo,
                       @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                       @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                       HttpSession session, Navigator nav) {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here

            channel.setGmtModified(channelDo.getGmtModified());
            List<Pipeline> pipelines = pipelineService.listByChannelIds(channelDo.getId());
            // 合并PipelineParameter和ChannelParameter
            SystemParameter systemParameter = systemParameterService.find();
            for (Pipeline pipeline : pipelines) {
                PipelineParameter parameter = new PipelineParameter();
                parameter.merge(systemParameter);
                parameter.merge(channel.getParameters());
                // 最后复制pipelineId参数
                parameter.merge(pipeline.getParameters());
                pipeline.setParameters(parameter);
                // pipeline.getParameters().merge(channel.getParameters());
            }
            channel.setPipelines(pipelines);
        } catch (Exception e) {
View Full Code Here

                // 遍历,将该Channel节点下的Pipeline提取出来。
                List<Pipeline> subPipelines = new ArrayList<Pipeline>();
                for (Pipeline pipeline : pipelines) {
                    if (pipeline.getChannelId().equals(channelDo.getId())) {
                        // 合并PipelineParameter和ChannelParameter
                        PipelineParameter parameter = new PipelineParameter();
                        parameter.merge(systemParameter);
                        parameter.merge(channel.getParameters());
                        // 最后复制pipelineId参数
                        parameter.merge(pipeline.getParameters());
                        pipeline.setParameters(parameter);
                        subPipelines.add(pipeline);
                    }
                }
View Full Code Here

                // 遍历,将该Channel节点下的Pipeline提取出来。
                List<Pipeline> subPipelines = new ArrayList<Pipeline>();
                for (Pipeline pipeline : pipelines) {
                    if (pipeline.getChannelId().equals(channelDo.getId())) {
                        // 合并PipelineParameter和ChannelParameter
                        PipelineParameter parameter = new PipelineParameter();
                        parameter.merge(systemParameter);
                        parameter.merge(channel.getParameters());
                        // 最后复制pipelineId参数
                        parameter.merge(pipeline.getParameters());
                        pipeline.setParameters(parameter);
                        subPipelines.add(pipeline);
                    }
                }
View Full Code Here

    public void doAdd(@FormGroup("pipelineInfo") Group pipelineInfo,
                      @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                      @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                      HttpSession session, Navigator nav) throws Exception {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here

    public void doEdit(@FormGroup("pipelineInfo") Group pipelineInfo,
                       @FormGroup("pipelineParameterInfo") Group pipelineParameterInfo,
                       @FormField(name = "formPipelineError", group = "pipelineInfo") CustomErrors err,
                       HttpSession session, Navigator nav) {
        Pipeline pipeline = new Pipeline();
        PipelineParameter parameters = new PipelineParameter();
        pipelineInfo.setProperties(pipeline);
        pipelineParameterInfo.setProperties(parameters);
        // if (parameters.getLoadPoolSize() < 1) {
        // parameters.setLoadPoolSize(PipelineParameter.DEFAULT_LOAD_POOL_SIZE);
        // }
View Full Code Here

TOP

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

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.