Examples of waitForPermit()


Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

     * @return
     */
    public EtlEventData await(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);
        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权

        ExtractStageListener extractStageListener = ArbitrateFactory.getInstance(pipelineId, ExtractStageListener.class);
        Long processId = extractStageListener.waitForProcess(); // 符合条件的processId

        ChannelStatus status = permitMonitor.getChannelPermit();
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

        PermitMonitor permit = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);

        // 优先启动主导线程
        mainStem.submit(pipelineId);
        try {
            permit.waitForPermit();// 阻塞等待授权
        } catch (InterruptedException e1) {
            want.fail();
        }

        if (arbitrateMode.isZookeeper()) {
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

            eventData.setPipelineId(pipelineId);
            eventData.setStatus(MainStemEventData.Status.OVERTAKE);
            mainStemEvent.single(eventData);

            PermitMonitor permit = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
            permit.waitForPermit();// 阻塞等待授权
        } catch (InterruptedException e) {
            want.fail();
        }

        boolean check = mainStemEvent.check(pipelineId);
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

        // 优先启动主导线程
        mainStem.submit(pipelineId);

        PermitMonitor permit = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        try {
            permit.waitForPermit();// 阻塞等待授权
        } catch (InterruptedException e1) {
            want.fail();
        }

        // 启动
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

        // 优先启动主导线程
        mainStem.submit(pipelineId);

        PermitMonitor permit = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        try {
            permit.waitForPermit();// 阻塞等待授权
        } catch (InterruptedException e1) {
            want.fail();
        }

        // 启动
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

     */
    public void waitForPermit(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);

        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权
    }

    /**
     * 提供数据接口获取对应pipeline上的状态
     */
 
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

    public EtlEventData await(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);

        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权

        MemoryStageController stageController = ArbitrateFactory.getInstance(pipelineId, MemoryStageController.class);
        Long processId = stageController.waitForProcess(StageType.SELECT); // 符合条件的processId

        ChannelStatus status = permitMonitor.getChannelPermit();
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

     * </pre>
     */
    public EtlEventData await(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);
        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权

        LoadStageListener loadStageListener = ArbitrateFactory.getInstance(pipelineId, LoadStageListener.class);
        Long processId = loadStageListener.waitForProcess(); // 符合条件的processId

        // DistributedLock lock = getLock(pipelineId);
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

    public EtlEventData await(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);

        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权

        SelectProcessListener selectProcessListener = ArbitrateFactory.getInstance(pipelineId,
                                                                                   SelectProcessListener.class);
        Long processId = selectProcessListener.waitForProcess(); // 符合条件的processId
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.monitor.PermitMonitor.waitForPermit()

    public EtlEventData await(Long pipelineId) throws InterruptedException {
        Assert.notNull(pipelineId);

        PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
        permitMonitor.waitForPermit();// 阻塞等待授权

        MemoryStageController stageController = ArbitrateFactory.getInstance(pipelineId, MemoryStageController.class);
        Long processId = stageController.waitForProcess(StageType.TRANSFORM); // 符合条件的processId

        ChannelStatus status = permitMonitor.getChannelPermit();
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.