Package org.menagerie

Examples of org.menagerie.ZkCommandExecutor


    private static final byte[] emptyBytes = new byte[]{};
    private final ReadLock readLock;
    private final WriteLock writeLock;

    public ReentrantZkReadWriteLock2(String baseNode, ZkSessionManager sessionManager){
         this(baseNode,new ZkCommandExecutor(sessionManager), ZooDefs.Ids.OPEN_ACL_UNSAFE);
    }
View Full Code Here


    public ReentrantZkReadWriteLock2(String baseNode, ZkSessionManager sessionManager){
         this(baseNode,new ZkCommandExecutor(sessionManager), ZooDefs.Ids.OPEN_ACL_UNSAFE);
    }

    public ReentrantZkReadWriteLock2(String baseNode, ZkSessionManager sessionManager,List<ACL> privileges){
        this(baseNode,new ZkCommandExecutor(sessionManager), privileges);
    }
View Full Code Here

        barrierPath = baseBarrierPath+System.currentTimeMillis();
        zk = newZooKeeper();

        //be sure that the lock-place is created
        try{
            ZkCommandExecutor zkCommandExecutor = new ZkCommandExecutor(new BaseZkSessionManager(zk));
            zkCommandExecutor.execute(new ZkCommand<Void>() {
                @Override
                public Void execute(ZooKeeper zk) throws KeeperException, InterruptedException {
                    zk.create(barrierPath,new byte[]{}, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
                    return null;
                }
View Full Code Here

TOP

Related Classes of org.menagerie.ZkCommandExecutor

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.