Examples of deleteRecursive()


Examples of hudson.FilePath.deleteRecursive()

                //listener.getLogger().println("Copying to " + app.getBaseName() + ".ipa");
                //ipaLocation.copyTo(buildDirectory.child(app.getBaseName() + ".ipa"));


                payload.deleteRecursive();
            }
        }

        return true;
    }
View Full Code Here

Examples of hudson.FilePath.deleteRecursive()

    public boolean cleanWorkspace() throws IOException, InterruptedException{
        checkPermission(BUILD);
        R b = getSomeBuildWithWorkspace();
        FilePath ws = b != null ? b.getWorkspace() : null;
        if (ws != null && getScm().processWorkspaceBeforeDeletion(this, ws, b.getBuiltOn())) {
            ws.deleteRecursive();
            return true;
        } else{
            // If we get here, that means the SCM blocked the workspace deletion.
            return false;
        }
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.deleteRecursive()

      ExampleUtils.getRequiredIntProperty("sessionTimeoutMillis", LOG),
      ExampleUtils.getRequiredIntProperty("connectTimeoutMillis", LOG));

    for (String pathToDelete : pathsToDelete)
    {
      zkClient.deleteRecursive(pathToDelete);
    }

    zkClient.close();
  }
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.deleteRecursive()

  @Override
  public void nodeOperationsComplete(MasterContext context, List<OperationResult> results) throws Exception {
    ZkClient zkClient = context.getProtocol().getZkClient();
    ZkConfiguration zkConf = context.getProtocol().getZkConfiguration();
    for (Shard shard : _indexMD.getShards()) {
      zkClient.deleteRecursive(zkConf.getZkPath(PathDef.SHARD_TO_NODES, shard.getName()));
    }
  }

  @Override
  public ExecutionInstruction getExecutionInstruction(List<MasterOperation> runningOperations) throws Exception {
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.deleteRecursive()

        void tryCleanupZookeeper() {
            try {
                ZkClient zk = new ZkClient(m_zkhost);
                String dir = "/consumers/" + m_groupId;
                zk.deleteRecursive(dir);
                dir = "/consumers/" + m_groupId + "-done";
                zk.deleteRecursive(dir);
                zk.close();
            } catch (Exception ex) {
                ex.printStackTrace();
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.deleteRecursive()

            try {
                ZkClient zk = new ZkClient(m_zkhost);
                String dir = "/consumers/" + m_groupId;
                zk.deleteRecursive(dir);
                dir = "/consumers/" + m_groupId + "-done";
                zk.deleteRecursive(dir);
                zk.close();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.deleteRecursive()

    public static CountDownLatch getReadySignal(String zkString, final String parentPath, final int counts) {
        ZkClient zkClient = new ZkClient(zkString);
        if (zkClient.exists(parentPath)) {
            System.out.println(parentPath + " path exists and will be deleted");
            zkClient.deleteRecursive(parentPath);
        }
        zkClient.createPersistent(parentPath);
        final CountDownLatch signalReady = new CountDownLatch(1);
        zkClient.subscribeChildChanges(parentPath, new IZkChildListener() {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkClient.deleteRecursive()

        if (childNames != null)
        {
          for (String childName : childNames)
          {
            String childPath = zkPath.equals("/")? "/" + childName : zkPath + "/" + childName;
            zkClient.deleteRecursive(childPath);
          }
        }
      }
      else
      {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkClient.deleteRecursive()

    String zkPath = getZKPath();
    try
    {
      ZkClient zkClient =
          (ZkClient) getContext().getAttributes().get(RestAdminApplication.ZKCLIENT);
      zkClient.deleteRecursive(zkPath);
     
      getResponse().setStatus(Status.SUCCESS_OK);
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkClient.deleteRecursive()

      if (childNames != null)
      {
        for (String childName : childNames)
        {
          String childPath = zkPath.equals("/")? "/" + childName : zkPath + "/" + childName;
          zkClient.deleteRecursive(childPath);
        }
      }
     
      getResponse().setStatus(Status.SUCCESS_OK);
    }
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.