Ejemplo n.º 1
0
 public void closeAndDelete() throws IOException {
   List<ListenableFuture<?>> tasks = new ArrayList<ListenableFuture<?>>();
   for (HashMap<String, ExportDataSource> map : m_dataSourcesByPartition.values()) {
     for (ExportDataSource source : map.values()) {
       tasks.add(source.closeAndDelete());
     }
   }
   try {
     Futures.allAsList(tasks).get();
   } catch (Exception e) {
     Throwables.propagateIfPossible(e, IOException.class);
   }
   shutdown = true;
   VoltFile.recursivelyDelete(m_directory);
 }