Examples of deleteFile()


Examples of com.hdfsTools.dao.deleteDao.deleteFile()

   * @throws IOException
   */
  public boolean deleteFile(String fileUrl) throws IOException {

    deleteDao delete = new deleteImpl();
    return delete.deleteFile(getConf(), fileUrl);

  }

  /**
   *
 
View Full Code Here

Examples of com.hdfsTools.impl.deleteImpl.deleteFile()

   * @throws IOException
   */
  public boolean deleteFile(String fileUrl) throws IOException {

    deleteDao delete = new deleteImpl();
    return delete.deleteFile(getConf(), fileUrl);

  }

  /**
   *
 
View Full Code Here

Examples of com.imaginea.mongodb.services.GridFSService.deleteFile()

                String result = null;
                if ("".equals(_id)) {
                    ApplicationException e = new DocumentException(ErrorCodes.DOCUMENT_DOES_NOT_EXIST, "File Data Missing in Request Body");
                    result = formErrorResponse(logger, e);
                } else {
                    result = gridFSService.deleteFile(dbName, bucketName, _id);
                }
                return result;
            }
        });
        return response;
View Full Code Here

Examples of com.imaginea.mongodb.services.impl.GridFSServiceImpl.deleteFile()

                String result = null;
                if ("".equals(_id)) {
                    ApplicationException e = new DocumentException(ErrorCodes.DOCUMENT_DOES_NOT_EXIST, "File Data Missing in Request Body");
                    result = formErrorResponse(logger, e);
                } else {
                    result = gridFSService.deleteFile(dbName, bucketName, _id);
                }
                return result;
            }
        });
        return response;
View Full Code Here

Examples of com.orientechnologies.orient.core.index.hashindex.local.cache.ODiskCache.deleteFile()

        OHashIndexFileLevelMetadataPage metadataPage = new OHashIndexFileLevelMetadataPage(hashStateEntry,
            ODurablePage.TrackMode.NONE, false);
        for (int i = 0; i < HASH_CODE_SIZE; i++) {
          if (!metadataPage.isRemoved(i)) {
            diskCache.openFile(metadataPage.getFileId(i));
            diskCache.deleteFile(metadataPage.getFileId(i));
          }
        }
      } finally {
        diskCache.release(hashStateEntry);
      }
View Full Code Here

Examples of com.sleepycat.je.log.FileManager.deleteFile()

                     iter.hasNext();) {
                    final Long fileNum = iter.next();
                    final boolean deleted;
                    try {
                        if (expunge) {
                            deleted = fileManager.deleteFile(fileNum);
                        } else {
                            deleted = fileManager.renameFile
                                (fileNum, FileManager.DEL_SUFFIX);
                        }
                    } catch (IOException e) {
View Full Code Here

Examples of com.vmware.vim.binding.vim.FileManager.deleteFile()

      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         @Override
         public VcTask body() throws Exception {
            FileManager mgr = VcContext.getService().getFileManager();
            return new VcTask(TaskType.DeleteFile,
                  mgr.deleteFile(dsPath, datastore.getDatacenterMoRef()), callback);
         }
      });
      return task;
   }
View Full Code Here

Examples of it.sauronsoftware.ftp4j.FTPClient.deleteFile()

        final FTPClient client = this.getClient();
        if (null != client
                && client.isConnected()) {
            try {
                if (StringUtils.hasText(_fileName)) {
                    client.deleteFile(_url);
                } else {
                    client.deleteDirectory(_url);
                }
            } catch (Throwable t) {
            }
View Full Code Here

Examples of net.sourceforge.pebble.domain.FileManager.deleteFile()

    assertEquals("y.txt", file.getName());
    assertEquals("/", file.getPath());
    assertFalse(file.isDirectory());

    // and clean up
    fileManager.deleteFile("/", "a");
    fileManager.deleteFile("/", "z");
    fileManager.deleteFile("/", "y.txt");
    fileManager.deleteFile("/", "b.txt");
  }
View Full Code Here

Examples of org.apache.commons.net.ftp.FTPClient.deleteFile()

        assertTrue(client1.makeDirectory("foo2"));
        assertTrue(client1.removeDirectory("foo2"));
        assertTrue(client1.storeFile(TEST_FILENAME, new ByteArrayInputStream(TESTDATA)));
        assertTrue(client1.storeFile(TEST_FILENAME, new ByteArrayInputStream(TESTDATA)));
        assertTrue(client1.retrieveFile(TEST_FILENAME, new ByteArrayOutputStream()));
        assertTrue(client1.deleteFile(TEST_FILENAME));
       
        assertTrue(client1.logout());
        client1.disconnect();

        FTPClient client2 = new FTPClient();
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.