Examples of StageComparator


Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

        Long processId = data.getProcessId();

        List<String> currentStages = null;
        try {
            currentStages = zookeeper.getChildren(StagePathUtils.getProcess(pipelineId, processId));
            Collections.sort(currentStages, new StageComparator());
        } catch (ZkNoNodeException e) {
            // ignore,说明节点已经被删除了
            return false;
        } catch (ZkException e) {
            throw new ArbitrateException("Termin_process", e);
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

            processStat.setStageStats(stageStats);
            try {
                String processPath = ManagePathUtils.getProcess(channelId, pipelineId, processId);
                Stat zkProcessStat = new Stat();
                List<String> stages = orginZk.getChildren(processPath, false, zkProcessStat);
                Collections.sort(stages, new StageComparator());

                StageStat prev = null;
                for (String stage : stages) {// 循环每个process下的stage
                    String stagePath = processPath + "/" + stage;
                    Stat zkStat = new Stat();
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

    /**
     * 处理指定的processId变化,返回结果true代表需要继续监听,false代表不需要监视
     */
    private boolean initProcessStage(Long processId, List<String> currentStages) {
        Collections.sort(currentStages, new StageComparator());
        if (logger.isDebugEnabled()) {
            logger.debug("pipeline[{}] processId[{}] with stage{}", new Object[] { getPipelineId(), processId,
                    currentStages });
        }

View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

                        // }
                    }
                }
            });

            Collections.sort(currentStages, new StageComparator());
            List<String> lastStages = this.currentStages.get(processId);
            if (lastStages == null || !lastStages.equals(currentStages)) {
                initProcessStage(processId); // 存在差异,立马触发一下
            }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

            processStat.setStageStats(stageStats);
            try {
                String processPath = ManagePathUtils.getProcess(channelId, pipelineId, processId);
                Stat zkProcessStat = new Stat();
                List<String> stages = orginZk.getChildren(processPath, false, zkProcessStat);
                Collections.sort(stages, new StageComparator());

                StageStat prev = null;
                for (String stage : stages) {// 循环每个process下的stage
                    String stagePath = processPath + "/" + stage;
                    Stat zkStat = new Stat();
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.StageComparator

            processStat.setStageStats(stageStats);
            try {
                String processPath = ManagePathUtils.getProcess(channelId, pipelineId, processId);
                Stat zkProcessStat = new Stat();
                List<String> stages = orginZk.getChildren(processPath, false, zkProcessStat);
                Collections.sort(stages, new StageComparator());

                StageStat prev = null;
                for (String stage : stages) {// 循环每个process下的stage
                    String stagePath = processPath + "/" + stage;
                    Stat zkStat = new Stat();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.