@Override public ExistsBuilderMain withACL(List<ACL> aclList) { acling = new ACLing(client.getAclProvider(), aclList, true); return this; }
public SetACLBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, List<ACL> aclList, int version) { this.client = client; this.acling = new ACLing(client.getAclProvider(), aclList); this.version = version; this.backgrounding = backgrounding; }
@Override public BackgroundPathable<Stat> withACL(List<ACL> aclList) { acling = new ACLing(client.getAclProvider(), aclList, false); return this; }
public ExistsBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, Watcher watcher, boolean createParentsIfNeeded, boolean createParentContainersIfNeeded) { this.client = client; this.backgrounding = backgrounding; this.watching = new Watching(client, watcher); this.createParentsIfNeeded = createParentsIfNeeded; this.createParentContainersIfNeeded = createParentContainersIfNeeded; this.acling = new ACLing(client.getAclProvider()); }
SetACLBuilderImpl(CuratorFrameworkImpl client) { this.client = client; backgrounding = new Backgrounding(); acling = new ACLing(client.getAclProvider()); version = -1; }
EnsurePath newNamespaceAwareEnsurePath(String path) { return new EnsurePath(fixForNamespace(path, false), client.getAclProvider()); } }
CreateBuilderImpl(CuratorFrameworkImpl client) { this.client = client; createMode = CreateMode.PERSISTENT; backgrounding = new Backgrounding(); acling = new ACLing(client.getAclProvider()); createParentsIfNeeded = false; createParentsAsContainers = false; compress = false; doProtected = false; setDataIfExists = false; protectedId = null; storingStat = null; ttl = -1; }
@Override public ACLBackgroundPathAndBytesable<String> withACL(List<ACL> aclList, boolean applyToParents) acling = new ACLing(client.getAclProvider(), aclList, applyToParents); return new ACLBackgroundPathAndBytesable<String>()
public CreateBuilderImpl(CuratorFrameworkImpl client, CreateMode createMode, Backgrounding backgrounding, boolean createParentsIfNeeded, boolean createParentsAsContainers, boolean doProtected, boolean compress, boolean setDataIfExists, List<ACL> aclList, Stat storingStat, long ttl) { this.client = client; this.createMode = createMode; this.backgrounding = backgrounding; this.createParentsIfNeeded = createParentsIfNeeded; this.createParentsAsContainers = createParentsAsContainers; this.compress = compress; this.setDataIfExists = setDataIfExists; this.acling = new ACLing(client.getAclProvider(), aclList); this.storingStat = storingStat; this.ttl = ttl; if ( doProtected ) { setProtected(); } }
@Override public Object call() throws Exception { ZKPaths.mkdirs(zookeeperClient.getZooKeeper(), ZKPaths.makePath("/", namespace), true, client.getAclProvider(), true); return null; } }
@Override public BackgroundPathable<Stat> withACL(List<ACL> aclList) { acling = new ACLing(client.getAclProvider(), aclList); return this; }
CreateBuilderImpl(CuratorFrameworkImpl client) { this.client = client; createMode = CreateMode.PERSISTENT; backgrounding = new Backgrounding(); acling = new ACLing(client.getAclProvider()); createParentsIfNeeded = false; createParentsAsContainers = false; compress = false; doProtected = false; protectedId = null; }
SetACLBuilderImpl(CuratorFrameworkImpl client) { this.client = client; backgrounding = new Backgrounding(); acling = new ACLing(client.getAclProvider()); version = -1; }
EnsurePath newNamespaceAwareEnsurePath(String path) { return new EnsurePath(fixForNamespace(path, false), client.getAclProvider()); } }
@Override public Void call() throws Exception { try { ZKPaths.mkdirs(client.getZooKeeper(), parent, true, client.getAclProvider(), true); } catch ( KeeperException.NodeExistsException e ) { // ignore } catch ( KeeperException.NoNodeException e ) { // ignore } return null; } }
@Override public ACLBackgroundPathAndBytesable<String> withACL(List<ACL> aclList) acling = new ACLing(client.getAclProvider(), aclList); return new ACLBackgroundPathAndBytesable<String>()
@Override public Object call() throws Exception { ZKPaths.mkdirs(zookeeperClient.getZooKeeper(), ZKPaths.makePath("/", namespace), true, client.getAclProvider(), true); return null; } }
@Override public void performBackgroundOperation(OperationAndData<T> dummy) throws Exception { try { ZKPaths.mkdirs(client.getZooKeeper(), path, false, client.getAclProvider(), createParentsAsContainers); } catch ( KeeperException e ) { if ( !RetryLoop.isRetryException(e) ) { throw e; } // otherwise safe to ignore as it will get retried } client.queueOperation(mainOperationAndData); } };