Package com.alibaba.otter.shared.arbitrate.impl.setl.rpc.monitor

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.rpc.monitor.ProcessMonitor


    /**
     * 获取最小一个符合条件的processId,排除loadedProcessId
     */
    private Long getMinTransformedProcessId(Long loadedProcessId) {
        ProcessMonitor processMonitor = ArbitrateFactory.getInstance(getPipelineId(), ProcessMonitor.class);
        List<Long> processIds = processMonitor.getCurrentProcessIds();
        // 如果需要当前node处理当前process的load时,rpc请求一定会将对应的stage状态发到这机器上,并保存到progress中
        if (!CollectionUtils.isEmpty(processIds) && !CollectionUtils.isEmpty(progress)) {
            // 上一次load成功的在当前的processId中不存在,可能有两种情况:
            // 1. zk还未将数据通知过来,当前current processIds还是为老版本的值
            // 2. processId已经被删除,比如好久没有数据同步了,定时触发时发觉列表一直为空
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.arbitrate.impl.setl.rpc.monitor.ProcessMonitor

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.