public void delete(String path) { path = "/" + path; try { _curator.delete().forPath(path); } catch (Exception e) { throw new RuntimeException(e); } }
client.delete().forPath(itemPath); client.delete().guaranteed().forPath(lockNodePath);
private void deleteOurPath(String ourPath) throws Exception { try { client.delete().guaranteed().forPath(ourPath); } catch ( KeeperException.NoNodeException e ) { // ignore - already deleted (possibly expired session, etc.) } }
client.delete().withVersion(stat.getVersion()).forPath(itemPath);
private void deleteNode() throws Exception { String localPath = ourPath; if ( localPath != null ) { try { client.delete().guaranteed().inBackground().forPath(localPath); } finally { ourPath = null; } } } }
public void deleteNode(CuratorFramework zk, String path) throws Exception { zk.delete().forPath(PathUtils.normalize_path(path)); }
public void deleteManualFailoverConfiguration() { try { this.curator.delete().guaranteed().inBackground().forPath(MANUAL_FAILOVER_PATH); } catch (Exception e) { throw new ZooKeeperException(e); } }
@Override public Void call() throws Exception { try { zk.delete().forPath(buildZookeeperPath(pathSuffix)); return null; } catch (KeeperException.NoNodeException e) { // likely deleted by another task return null; } } });
void addFailedDelete(String path) { if ( client.isStarted() ) { log.debug("Path being added to guaranteed delete set: " + path); try { client.delete().guaranteed().inBackground().forPath(path); } catch ( Exception e ) { addFailedDelete(path); } } } }
private void checkDeleteOurPath(boolean shouldExist) throws Exception { if ( shouldExist ) { client.delete().forPath(ourPath); } }
public Void call() throws Exception { String memberpath = new StringBuffer(groupname) .append(FWD_SLASH).append(membername) .toString(); transport.getZKHandle().delete().forPath(memberpath); return null; } });
/** * Utility to remove the barrier node * * @throws Exception errors */ public synchronized void removeBarrier() throws Exception { try { client.delete().forPath(barrierPath); } catch ( KeeperException.NoNodeException ignore ) { // ignore } }
/** * Attempt to delete the lock node so that sequence numbers get reset * * @throws Exception errors */ public void clean() throws Exception { try { client.delete().forPath(basePath); } catch ( KeeperException.BadVersionException ignore ) { // ignore - another thread/process got the lock } catch ( KeeperException.NotEmptyException ignore ) { // ignore - other threads/processes are waiting } }
public Void call() throws Exception { if (subgroup!= null && subgroup.contains(groupname)) { String grouptoLeave = new StringBuffer(subgroup) .append(FWD_SLASH).append(membername) .toString(); transport.getZKHandle().delete().forPath(grouptoLeave); } else { leave(); } return null; } });
public void delete(String path) { try { if (!exists(path)) return; m_curator.delete().forPath(path); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } } }
client.delete().forPath(holder.path); log.info("Reaping path: " + holder.path); if ( holder.mode == Mode.REAP_UNTIL_DELETE || holder.mode == Mode.REAP_UNTIL_GONE )
client.delete().forPath(readyPath);
if ( removeIt ) client.delete().forPath(thisPath);