Package com.alibaba.otter.shared.arbitrate.impl.setl.helper

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


            public ReplyProcessQueue apply(StageType input) {
                int size = ArbitrateConfigUtils.getParallelism(getPipelineId()) * 10;
                if (size < 100) {
                    size = 100;
                }
                return new ReplyProcessQueue(size);
            }
        });

        progress = new MapMaker().makeMap();
        termins = new LinkedBlockingQueue<TerminEventData>(20);
View Full Code Here


    }

    private synchronized void initSelect() {
        // 第一次/出现ROLLBACK/RESTART事件,删除了所有调度信号后,重新初始化一下select stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }
View Full Code Here

        int size = ArbitrateConfigUtils.getParallelism(pipelineId) * 10;
        if (size < 100) {
            size = 100;
        }

        replyProcessIds = new ReplyProcessQueue(size);
        stageMonitor = ArbitrateFactory.getInstance(pipelineId, StageMonitor.class);
        stageMonitor.addListener(this);
        stageMonitor.reload(); // 触发一下processChanged
    }
View Full Code Here

            public ReplyProcessQueue apply(StageType input) {
                int size = ArbitrateConfigUtils.getParallelism(getPipelineId()) * 10;
                if (size < 100) {
                    size = 100;
                }
                return new ReplyProcessQueue(size);
            }
        });

        progress = new MapMaker().makeMap();
        termins = new LinkedBlockingQueue<TerminEventData>(20);
View Full Code Here

    private synchronized void initSelect() {
        // 第一次/出现ROLLBACK/RESTART事件,删除了所有调度信号后,重新初始化一下select
        // stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }
View Full Code Here

            public ReplyProcessQueue apply(StageType input) {
                int size = ArbitrateConfigUtils.getParallelism(getPipelineId()) * 10;
                if (size < 100) {
                    size = 100;
                }
                return new ReplyProcessQueue(size);
            }
        });

        progress = new MapMaker().makeMap();
        // 注册一下监听事件变化
View Full Code Here

            public ReplyProcessQueue apply(StageType input) {
                int size = ArbitrateConfigUtils.getParallelism(getPipelineId()) * 10;
                if (size < 100) {
                    size = 100;
                }
                return new ReplyProcessQueue(size);
            }
        });

        progress = new MapMaker().makeMap();
        termins = new LinkedBlockingQueue<TerminEventData>(20);
View Full Code Here

    }

    private synchronized void initSelect() {
        // 第一次/出现ROLLBACK/RESTART事件,删除了所有调度信号后,重新初始化一下select stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }
View Full Code Here

        int size = ArbitrateConfigUtils.getParallelism(pipelineId) * 10;
        if (size < 100) {
            size = 100;
        }

        replyProcessIds = new ReplyProcessQueue(size);
        processMonitor = ArbitrateFactory.getInstance(pipelineId, ProcessMonitor.class);
        processMonitor.addListener(this);
        processMonitor.reload(); // 触发一下processChanged
    }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.arbitrate.impl.setl.helper.ReplyProcessQueue

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.