nl.uva.vlet.vfs
Class VFS
java.lang.Object
nl.uva.vlet.vrs.VRS
nl.uva.vlet.vfs.VFS
public abstract class VFS
- extends VRS
The Virtual File System Class.
Defines the interface to any (Virtual) VFSClient implementation.
Currently implemented by: LocalFS, GridFTP and SRBClient
- See Also:
VFSNode
,
VNode
,
VFile
,
VDir
,
VComposite
Fields inherited from class nl.uva.vlet.vrs.VRS |
ATTR_AUTH_SCHEME, ATTR_HOSTNAME, ATTR_ID, ATTR_PASSPHRASE, ATTR_PASSWORD, ATTR_PORT, ATTR_SCHEME, ATTR_USERNAME, DEFAULT_GRIDFTP_PORT, DEFAULT_SSH_PORT, DIR_TYPE, FILE_SCHEME, FILE_TYPE, GFTP_SCHEME, HTTP_SCHEME, HTTPS_SCHEME, LINK_TYPE, LOCALHOST, MAX_CONTENTS_SIZE, MYVLE_SCHEME, MYVLE_TYPE, RFTS_JOB_TYPE, RFTS_SCHEME, RFTS_SERVER_TYPE, RFTS_TRANSFER_TYPE, SERVER_TYPE, SFTP_SCHEME, SRB_SCHEME, VLINK_EXTENSION |
Constructor Summary |
VFS()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VFS
public VFS()
getResourceTypes
public java.lang.String[] getResourceTypes()
- Return types of resources it supports.
Overide this method to create custom types.
Default the VFS (Virtual File System) should support FILE and DIR types !
- Specified by:
getResourceTypes
in class VRS
getTaskWatcher
public static VFSTaskWatcher getTaskWatcher()
convertFileMode2ACL
public static VAttribute[][] convertFileMode2ACL(int mode,
boolean isDir)
- translate unix style file modification to ACL list
convertACL2FileMode
public static int convertACL2FileMode(VAttribute[][] acl,
boolean isDir)
newTransfer
public static VFSTransfer newTransfer(java.lang.String type,
VRL source,
VRL dest,
boolean isMove)
modeToString
public static java.lang.String modeToString(boolean isdir,
int mode)