Examples of ZkCountDownLatch


Examples of org.menagerie.latches.spi.ZkCountDownLatch

*/
@Beta
public final class LatchBuilder {

    public final static DistributedCountDownLatch newCountDownLatch(long total, String latchNode, ZkSessionManager zkSessionManager) {
        return new ZkCountDownLatch(total, latchNode, zkSessionManager);
    }
View Full Code Here

Examples of org.menagerie.latches.spi.ZkCountDownLatch

    public final static DistributedCountDownLatch newCountDownLatch(long total, String latchNode, ZkSessionManager zkSessionManager) {
        return new ZkCountDownLatch(total, latchNode, zkSessionManager);
    }

    public final static DistributedCountDownLatch newCountDownLatch(long total, String latchNode, ZkSessionManager zkSessionManager, List<ACL> privileges) {
        return new ZkCountDownLatch(total, latchNode, zkSessionManager, privileges);
    }
View Full Code Here

Examples of org.menagerie.latches.spi.ZkCountDownLatch

    public final static DistributedCountDownLatch newCountDownLatch(long total, String latchNode, ZkSessionManager zkSessionManager, List<ACL> privileges) {
        return new ZkCountDownLatch(total, latchNode, zkSessionManager, privileges);
    }

    public final static DistributedCountDownLatch newCountDownLatch(long total, String latchNode, ZkSessionManager zkSessionManager, List<ACL> privileges, boolean tolerateFailures) {
        return new ZkCountDownLatch(total, latchNode, zkSessionManager, privileges, tolerateFailures);
    }
View Full Code Here

Examples of org.voltcore.zk.ZKCountdownLatch

            // Initialize command logger
            m_commandLog.init(m_catalogContext, txnId, m_cartographer.getPartitionCount(),
                              m_config.m_commandLogBinding,
                              perPartitionTxnIds);
            try {
                ZKCountdownLatch latch =
                        new ZKCountdownLatch(m_messenger.getZK(),
                                VoltZK.commandlog_init_barrier, m_messenger.getLiveHostIds().size());
                latch.countDown(true);
                latch.await();
            } catch (Exception e) {
                VoltDB.crashLocalVoltDB("Failed to init and wait on command log init barrier", true, e);
            }
        }
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.