Examples of deleteRecursively()


Examples of com.trendmicro.codi.ZNode.deleteRecursively()

        brkBuilder.setVersion("4.5.1");
        brkBuilder.setReserved(false);
       
        ZNode brkNode = new ZNode(tmeRoot + "/broker/" + host);
        try {
            brkNode.deleteRecursively();
        }
        catch(Exception e) {
        }
        brkNode.create(false, brkBuilder.build().toString());
       
View Full Code Here

Examples of com.trendmicro.codi.ZNode.deleteRecursively()

    }
   
    public void unregisterOnZk() throws CODIException {
        obs.stop();
        ZNode brkNode = new ZNode(tmeRoot + "/broker/" + host);
        brkNode.deleteRecursively();
    }
   
    private ZooKeeperInfo.Broker.Status getNewStatus() {
        try {
            byte[] data = new ZNode(tmeRoot + "/broker/" + host).getContent();
View Full Code Here

Examples of com.trendmicro.codi.ZNode.deleteRecursively()

        assertTrue(routeFarm.getDestList("bar.out").contains(""));

        /**
         * Remove graph bar
         */
        barNode.deleteRecursively();
        waitForUpdate(routeFarm);
        assertTrue(routeFarm.getRouteTable().isEmpty());
    }

    public static Test suite() {
View Full Code Here

Examples of com.xebialabs.overthere.OverthereFile.deleteRecursively()

      logs2.copyTo(logs1);
      System.err.println("Exists #1: " + logs1.exists());
      System.err.println("Exists #2: " + logs2.exists());

      logs1.deleteRecursively();
      logs2.deleteRecursively();
      System.err.println("Exists #1: " + logs1.exists());
      System.err.println("Exists #2: " + logs2.exists());
    } finally {
      connection.close();
    }
View Full Code Here

Examples of org.apache.accumulo.server.fs.VolumeManager.deleteRecursively()

      }

      bifCopyQueue.waitUntilDone(workIds);
    }

    fs.deleteRecursively(new Path(error, BulkImport.FAILURES_TXT));
    return new CleanUpBulkImport(tableId, source, bulk, error);
  }

}
View Full Code Here

Examples of org.apache.accumulo.server.fs.VolumeManager.deleteRecursively()

  }

  @Override
  public void undo(long tid, Master master) throws Exception {
    VolumeManager fs = master.getFileSystem();
    fs.deleteRecursively(new Path(tableInfo.dir));

  }
}

class ChooseDir extends MasterRepo {
View Full Code Here

Examples of org.apache.accumulo.server.fs.VolumeManager.deleteRecursively()

    TemporaryFolder root = new TemporaryFolder(new File(System.getProperty("user.dir") + "/target"));
    root.create();
    final String workdir = root.getRoot().getAbsolutePath() + "/workdir";
    VolumeManager fs = VolumeManagerImpl.getLocal(workdir);
    final Path workdirPath = new Path("file://" + workdir);
    fs.deleteRecursively(workdirPath);
    ArrayList<Path> dirs = new ArrayList<Path>();
    try {
      for (Entry<String,KeyValue[]> entry : logs.entrySet()) {
        String path = workdir + "/" + entry.getKey();
        FileSystem ns = fs.getVolumeByPath(new Path(path)).getFileSystem();
View Full Code Here

Examples of org.apache.accumulo.server.fs.VolumeManager.deleteRecursively()

    if (refCount == 0) {
      // delete the map files
      try {
        VolumeManager fs = master.getFileSystem();
        for (String dir : ServerConstants.getTablesDirs()) {
          fs.deleteRecursively(new Path(dir, tableId));
        }
      } catch (IOException e) {
        log.error("Unable to remove deleted table directory", e);
      } catch (IllegalArgumentException exception) {
        if (exception.getCause() instanceof UnknownHostException) {
View Full Code Here

Examples of org.apache.accumulo.server.fs.VolumeManager.deleteRecursively()

      }
     
      bifCopyQueue.waitUntilDone(workIds);
    }
   
    fs.deleteRecursively(new Path(error, BulkImport.FAILURES_TXT));
    return new CleanUpBulkImport(tableId, source, bulk, error);
  }
 
}
View Full Code Here

Examples of org.nasutekds.quicksetup.util.FileManager.deleteRecursively()

            notifyListeners(INFO_ERROR_RESTORING_FILE.get(Utils.getPath(f),
                    Utils.getPath(root)));
          }
        }
        if (!restoreError) {
          fm.deleteRecursively(backupDirectory);
        }

        if (! instanceAndInstallInSameDir())
        {
          root = getInstallation().getInstanceDirectory();
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.