Examples of deleteRecursive()


Examples of com.linkedin.helix.manager.zk.ZkClient.deleteRecursive()

  {
    ZkClient zkClient = new ZkClient(ZkAddr);
    if (zkClient.exists("/" + clusterName))
    {
      LOG.warn("Cluster already exists:" + clusterName + ". Deleting it");
      zkClient.deleteRecursive("/" + clusterName);
    }

    ClusterSetup setupTool = new ClusterSetup(ZkAddr);
    setupTool.addCluster(clusterName, true);
    setupTool.addStateModelDef(clusterName,
View Full Code Here

Examples of com.linkedin.helix.manager.zk.ZkClient.deleteRecursive()

    ZkClient zkclient = new ZkClient(zkServer, ZkClient.DEFAULT_SESSION_TIMEOUT,
        ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ZNRecordSerializer());
   
    final int n = 40;
    String clusterName = "ZkClientPerfTest";
    zkclient.deleteRecursive("/" + clusterName);
   
    for (int i = 0; i < n; i++)
    {
     
    }
View Full Code Here

Examples of com.linkedin.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 com.linkedin.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 com.linkedin.helix.manager.zk.ZkClient.deleteRecursive()

    String clusterName = uniqClusterName;
    if (zkClient.exists("/" + clusterName))
    {
      LOG.warn("test cluster already exists:" + clusterName + ", test name:" + uniqClusterName
          + " is not unique or test has been run without cleaning up zk; deleting it");
      zkClient.deleteRecursive("/" + clusterName);
    }

    if (_testInfoMap.containsKey(uniqClusterName))
    {
      LOG.warn("test info already exists:" + uniqClusterName
View Full Code Here

Examples of com.linkedin.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

Examples of com.linkedin.helix.manager.zk.ZkClient.deleteRecursive()

  {
    ZkClient zkClient = new ZkClient(ZkAddr);
    if (zkClient.exists("/" + clusterName))
    {
      LOG.warn("Cluster already exists:" + clusterName + ". Deleting it");
      zkClient.deleteRecursive("/" + clusterName);
    }

    ClusterSetup setupTool = new ClusterSetup(ZkAddr);
    setupTool.addCluster(clusterName, true);
View Full Code Here

Examples of hudson.FilePath.deleteRecursive()

    public HttpResponse doDoWipeOutWorkspace() throws IOException, ServletException, InterruptedException {
        checkPermission(Functions.isWipeOutPermissionEnabled() ? WIPEOUT : BUILD);
        R b = getSomeBuildWithWorkspace();
        FilePath ws = b!=null ? b.getWorkspace() : null;
        if (ws!=null && getScm().processWorkspaceBeforeDeletion(this, ws, b.getBuiltOn())) {
            ws.deleteRecursive();
            for (WorkspaceListener wl : WorkspaceListener.all()) {
                wl.afterDelete(this);
            }
            return new HttpRedirect(".");
        } else {
View Full Code Here

Examples of hudson.FilePath.deleteRecursive()

        }

        // Clean build directories
        if(cleanBeforeBuild) {
            listener.getLogger().println("Cleaning build directory (" + projectRoot.child("build") + ")");
            buildDirectory.deleteRecursive();
        }
       
        // remove test-reports and *.ipa
        listener.getLogger().println("Cleaning up test-reports");
        projectRoot.child("test-reports").deleteRecursive();
View Full Code Here

Examples of hudson.FilePath.deleteRecursive()

            for(FilePath app : apps) {
                String baseName = app.getBaseName() + "-" + configuration + "-" + build.getProject().getName() + "-" + versionNumber;
                FilePath ipaLocation = buildDirectory.child(baseName + ".ipa");

                FilePath payload = buildDirectory.child("Payload");
                payload.deleteRecursive();
                payload.mkdirs();
          

                listener.getLogger().println("Packaging " + app.getBaseName() + ".app => " + ipaLocation);
                List<String> packageCommandLine = new ArrayList<String>();
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.