org.edg.data.reptor.storage
Interface GridFTP


public interface GridFTP

This interface contains the calls to the globus GridFTP commands used by edg-rm.

Version:
$Id $
Author:
Peter Kunszt

Method Summary
 void delete()
          Deletes the file.
 boolean exists()
          Check if the file exists.
 long getFilesize()
          Returns the filesize.
 java.net.URI getURI()
          Retrieve the URI.
 java.lang.String[] list()
          List the contents of a directory
 void makeDirs()
          Creates all necessary dirs for the file.
 

Method Detail

getURI

public java.net.URI getURI()
Retrieve the URI.


delete

public void delete()
            throws FileHandleException
Deletes the file.

Throws:
FileHandleException - if an error during the delete occurs.

list

public java.lang.String[] list()
                        throws FileHandleException
List the contents of a directory

Throws:
FileHandleException - if an error occurs.

getFilesize

public long getFilesize()
                 throws FileHandleException
Returns the filesize.

Returns:
the fileszize
Throws:
FileHandleException - if an error during evaluating the filesize occurs.

exists

public boolean exists()
               throws FileHandleException
Check if the file exists.

Returns:
true if the file exists; false otherwise
Throws:
FileHandleException - if an error during the inquiry occurs.

makeDirs

public void makeDirs()
              throws FileHandleException
Creates all necessary dirs for the file.

Throws:
FileHandleException - if the creation fails