eu.unicore.hila.gridftp
Class GridFTPFile

java.lang.Object
  extended by eu.unicore.hila.common.BaseResource
      extended by eu.unicore.hila.common.grid.BaseFile
          extended by eu.unicore.hila.gridftp.GridFTPFile
All Implemented Interfaces:
eu.unicore.hila.grid.File, eu.unicore.hila.Resource

public class GridFTPFile
extends eu.unicore.hila.common.grid.BaseFile
implements eu.unicore.hila.grid.File

MlsxEntry example: unix.owner=root;unix.mode=0755;size=4096;perm=el;type =dir;unix.group=root;unique=fd00-58d381;modify=20110218071710; selinux

Author:
bjoernh 06.02.2012 16:22:30

Field Summary
 
Fields inherited from class eu.unicore.hila.common.grid.BaseFile
path
 
Fields inherited from class eu.unicore.hila.common.BaseResource
location
 
Method Summary
 void copyTo(eu.unicore.hila.grid.File _other, boolean _overwrite, boolean _recursive)
           
 boolean delete(boolean _recursive)
           
 boolean exists()
           
 eu.unicore.hila.grid.SimpleTransfer exportToLocalFile(File localFile, boolean _overwrite, boolean _recursive)
           
 eu.unicore.hila.grid.SimpleTransfer exportToStream(OutputStream _os)
          Default implementation does not close the output stream.
 eu.unicore.hila.grid.Storage getStorage()
           
 eu.unicore.hila.grid.SimpleTransfer importFromLocalFile(File localFile, boolean _overwrite, boolean _recursive)
           
 eu.unicore.hila.grid.SimpleTransfer importFromStream(InputStream _is, boolean _overwrite)
           
 boolean isDirectory()
           
 boolean isExecutable()
           
 boolean isReadable()
           
 boolean isWritable()
           
 Date lastModified()
           
static eu.unicore.hila.Resource locate(eu.unicore.hila.Location _location, Object... _extraInformation)
           
 List<eu.unicore.hila.grid.File> ls()
           
 boolean mkdir(boolean _createParents)
           
 void moveTo(eu.unicore.hila.grid.File _other, boolean _overwrite)
           
 void setIsExecutable(boolean _executable)
           
 void setIsReadable(boolean _readable)
           
 void setIsWritable(boolean _writable)
           
 long size()
           
 eu.unicore.hila.grid.ThirdPartyTransfer transfer(eu.unicore.hila.grid.File _other, boolean _overwrite, boolean _recursive)
           
 
Methods inherited from class eu.unicore.hila.common.grid.BaseFile
chmod, copyTo, copyTo, delete, exportToLocalFile, exportToLocalFile, getChildren, getMetadata, getPath, importFromLocalFile, importFromLocalFile, importFromStream, isRoot, mkdir, moveTo, transfer, transfer
 
Methods inherited from class eu.unicore.hila.common.BaseResource
findParentLocationOfType, getChild, getLocation, getName, getParent, ok
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.unicore.hila.grid.File
chmod, copyTo, copyTo, delete, exportToLocalFile, exportToLocalFile, importFromLocalFile, importFromLocalFile, importFromStream, isRoot, mkdir, moveTo, transfer, transfer
 
Methods inherited from interface eu.unicore.hila.Resource
getChild, getChildren, getLocation, getMetadata, getName, getParent, ok
 

Method Detail

locate

public static eu.unicore.hila.Resource locate(eu.unicore.hila.Location _location,
                                              Object... _extraInformation)
                                       throws eu.unicore.hila.exceptions.HiLAException
Throws:
eu.unicore.hila.exceptions.HiLAException

ls

public List<eu.unicore.hila.grid.File> ls()
                                   throws eu.unicore.hila.exceptions.HiLAException
Specified by:
ls in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.ls()

exists

public boolean exists()
               throws eu.unicore.hila.exceptions.HiLAException
Specified by:
exists in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.exists()

isReadable

public boolean isReadable()
                   throws eu.unicore.hila.exceptions.HiLAException
Specified by:
isReadable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.isReadable()

setIsReadable

public void setIsReadable(boolean _readable)
                   throws eu.unicore.hila.exceptions.HiLAException
Specified by:
setIsReadable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.setIsReadable(boolean)

isWritable

public boolean isWritable()
                   throws eu.unicore.hila.exceptions.HiLAException
Specified by:
isWritable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.isWritable()

setIsWritable

public void setIsWritable(boolean _writable)
                   throws eu.unicore.hila.exceptions.HiLAException
Specified by:
setIsWritable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.setIsWritable(boolean)

isExecutable

public boolean isExecutable()
                     throws eu.unicore.hila.exceptions.HiLAException
Specified by:
isExecutable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.isExecutable()

setIsExecutable

public void setIsExecutable(boolean _executable)
                     throws eu.unicore.hila.exceptions.HiLAException
Specified by:
setIsExecutable in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.setIsExecutable(boolean)

delete

public boolean delete(boolean _recursive)
               throws eu.unicore.hila.exceptions.HiLAException
Specified by:
delete in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.delete(boolean)

mkdir

public boolean mkdir(boolean _createParents)
              throws eu.unicore.hila.exceptions.HiLAException
Specified by:
mkdir in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.mkdir(boolean)

getStorage

public eu.unicore.hila.grid.Storage getStorage()
                                        throws eu.unicore.hila.exceptions.HiLAException
Specified by:
getStorage in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.getStorage()

importFromLocalFile

public eu.unicore.hila.grid.SimpleTransfer importFromLocalFile(File localFile,
                                                               boolean _overwrite,
                                                               boolean _recursive)
                                                        throws eu.unicore.hila.exceptions.HiLAException
Specified by:
importFromLocalFile in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.importFromLocalFile(java.io.File, boolean, boolean)

exportToLocalFile

public eu.unicore.hila.grid.SimpleTransfer exportToLocalFile(File localFile,
                                                             boolean _overwrite,
                                                             boolean _recursive)
                                                      throws eu.unicore.hila.exceptions.HiLAException
Specified by:
exportToLocalFile in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.exportToLocalFile(java.io.File, boolean, boolean)

exportToStream

public eu.unicore.hila.grid.SimpleTransfer exportToStream(OutputStream _os)
                                                   throws eu.unicore.hila.exceptions.HiLAException
Default implementation does not close the output stream.

Specified by:
exportToStream in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.exportToStream(java.io.OutputStream)

importFromStream

public eu.unicore.hila.grid.SimpleTransfer importFromStream(InputStream _is,
                                                            boolean _overwrite)
                                                     throws eu.unicore.hila.exceptions.HiLAException
Specified by:
importFromStream in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.importFromStream(java.io.InputStream, boolean)

transfer

public eu.unicore.hila.grid.ThirdPartyTransfer transfer(eu.unicore.hila.grid.File _other,
                                                        boolean _overwrite,
                                                        boolean _recursive)
                                                 throws eu.unicore.hila.exceptions.HiLAException
Specified by:
transfer in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.transfer(eu.unicore.hila.grid.File, boolean, boolean)

size

public long size()
          throws eu.unicore.hila.exceptions.HiLAException
Specified by:
size in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.size()

lastModified

public Date lastModified()
                  throws eu.unicore.hila.exceptions.HiLAException
Specified by:
lastModified in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.lastModified()

copyTo

public void copyTo(eu.unicore.hila.grid.File _other,
                   boolean _overwrite,
                   boolean _recursive)
            throws eu.unicore.hila.exceptions.HiLAException
Specified by:
copyTo in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.copyTo(eu.unicore.hila.grid.File, boolean, boolean)

moveTo

public void moveTo(eu.unicore.hila.grid.File _other,
                   boolean _overwrite)
            throws eu.unicore.hila.exceptions.HiLAException
Specified by:
moveTo in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.moveTo(eu.unicore.hila.grid.File, boolean)

isDirectory

public boolean isDirectory()
                    throws eu.unicore.hila.exceptions.HiLAException
Specified by:
isDirectory in interface eu.unicore.hila.grid.File
Throws:
eu.unicore.hila.exceptions.HiLAException
See Also:
File.isDirectory()


Copyright © 2010-2013 UNICORE. All Rights Reserved.