Examples of removeFile()


Examples of org.apache.hadoop.chukwa.datacollection.controller.ChukwaAgentController.removeFile()

      File tmpOutput = TempFileUtil.makeBinary(2000);

      cli.addFile("unknown", tmpOutput.getAbsolutePath());
      System.out.println("have " + agent.adaptorCount() + " running adaptors");
      cli.removeFile("unknown", tmpOutput.getAbsolutePath());

      tmpOutput.delete();
      assertFalse(failed);
      System.out.println("done");
      agent.shutdown();
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.removeFile()

        List<Reference> refs = client.getProductReferences(p);
        if (refs == null) {
            throw new Exception("FileManager returned null References");
        }
        for (Reference ref : refs) {
            if (!client.removeFile(new File(new URI(ref.getDataStoreReference()))
                    .getAbsolutePath())) {
                throw new Exception("Failed to delete file '"
                        + ref.getDataStoreReference() + "'");
            }
        }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.removeFile()

         List<Reference> refs = client.getProductReferences(p);
         if (refs == null) {
            throw new Exception("FileManager returned null References");
         }
         for (Reference ref : refs) {
            if (!client.removeFile(new File(new URI(ref.getDataStoreReference()))
                  .getAbsolutePath())) {
               throw new Exception("Failed to delete file '"
                     + ref.getDataStoreReference() + "'");
            }
         }
View Full Code Here

Examples of org.jnode.net.nfs.nfs2.NFS2Client.removeFile()

            } catch (NFS2Exception e) {
                throw new IOException("Can not remove directory " + name + "." + e.getMessage(), e);
            }
        } else {
            try {
                nfsClient.removeFile(directoryEntry.getFileHandle(), name);
            } catch (NFS2Exception e) {
                throw new IOException("Can not remove file " + name + "." + e.getMessage(), e);
            }
        }
        tableEntry.removeEntry(name);
View Full Code Here

Examples of sos.ftp.profiles.FTPProfile.removeFile()

          public void widgetSelected(final SelectionEvent e) {
            if(txtFilename.getText() != null) {
              Utils.startCursor(schedulerConfigurationShell);
              try {
                FTPProfile profile = listener.getCurrProfile();
                profile.removeFile(txtFilename.getText());
                HashMap h = profile.changeDirectory(txtDir.getText());
                fillTable(h);
              } catch (Exception r) {
                try {
                  new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName(), r);
View Full Code Here

Examples of workspace.elements.HaxeProject.removeFile()

                    String extention = resource.getFileExtension();
                    if (CodeFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                        HaxeProject project =
                                manager.getProject(resource.getProject().getName());
                        project.removeFile((IFile)resource);
                    }
                    else if (BuildFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                       
                    }
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.