|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.vfs.VFSClient
public final class VFSClient
VFSClient class is an interface to the VFS services. It provides methods to the different VFS interfaces and implementations.
Use method openLocation()
to get any file/directory
anywhere on the grid.
First create your local VFS handler object which interacts with the VFS services.
VFS
,
VFSNode
,
VDir
,
VFile
Constructor Summary | |
---|---|
VFSClient()
Create VFS Client object |
Method Summary | |
---|---|
VFSTransfer |
asyncCopy(VDir dir,
VDir dest)
Copy single VDir in background Returns TransgerInfo object which can be used to monitor the result |
VFSTransfer |
asyncCopy(VFile file,
VDir dest)
Copy single VFile in background. |
VFSTransfer |
asyncMove(VDir dir,
VDir dest)
Move single VDir in background Returns TransgerInfo object which can be used to monitor the result. |
VFSTransfer |
asyncMove(VFile file,
VDir dest)
Move single VFile in background. |
void |
close()
Close this client and release resources |
VDir |
copy(VDir dir,
VDir dest)
Copy single VDir |
VFile |
copy(VFile vfile,
VDir dest)
Copy VFile to remote (VDir) destination. |
VFile |
createFile(VRL filepath,
boolean force)
Create file. |
boolean |
existsDir(VRL location)
Returns true if location is a VDir and it exists. |
boolean |
existsFile(VRL location)
Returns true if location is a VFile and it exists. |
static VFSClient |
getDefault()
Returns default class object |
VDir |
getDir(java.lang.String locStr)
Return VDir specified by the location string |
VDir |
getDir(VRL location)
Returns VDir specified by the location |
VFile |
getFile(java.lang.String locStr)
Return VFile specified by the location string |
VFile |
getFile(VRL location)
Return VFile specified by the location |
VDir |
getTempDir()
|
VFSNode |
getVFSNode(VRL location)
Return VFile specified by the location |
VRSContext |
getVRSContext()
Returns Resource Context associated with this client. |
VDir |
mkdir(VRL loc)
Recursive mkdir. |
VDir |
mkdir(VRL loc,
boolean ignoreExisting)
Recursive mkdir. |
VDir |
move(VDir dir,
VDir dest)
VFS method to move single Dir |
VFile |
move(VFile file,
VDir dest)
Move VFile to remore (VDir) destination. |
VFSNode |
openLocation(java.lang.String location)
Return VFSNode pointing to the specified location |
VFSNode |
openLocation(VRL location)
Return VFSNode pointing to the specified location |
boolean |
rename(VRL vrl,
java.lang.String pathOrName)
VFS Rename. |
boolean |
setTempDir(VRL loc)
|
void |
setVRSContext(VRSContext context)
Sets new Resource Context associated with this client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VFSClient()
Method Detail |
---|
public static VFSClient getDefault()
public VFSNode openLocation(java.lang.String location) throws VlException
VlException
public VFSNode openLocation(VRL location) throws VlException
VlException
public VRSContext getVRSContext()
public void setVRSContext(VRSContext context)
public VFile getFile(java.lang.String locStr) throws VlException
VlException
public VFSNode getVFSNode(VRL location) throws VlException
VlException
public VFile getFile(VRL location) throws VlException
VlException
public VDir getDir(java.lang.String locStr) throws VlException
VlException
public VDir getDir(VRL location) throws VlException
location
-
VlException
public VFile move(VFile file, VDir dest) throws VlException
Calls VFile.moveTo()
VlException
public VFile copy(VFile vfile, VDir dest) throws VlException
Calls VFile.copyTo()
VlException
public VDir copy(VDir dir, VDir dest) throws VlException
VlException
public VFSTransfer asyncCopy(VDir dir, VDir dest) throws VlException
VlException
public VFSTransfer asyncCopy(VFile file, VDir dest) throws VlException
VlException
public VFSTransfer asyncMove(VDir dir, VDir dest) throws VlException
VlException
public VFSTransfer asyncMove(VFile file, VDir dest) throws VlException
VlException
public VDir move(VDir dir, VDir dest) throws VlException
dir
- dest
-
VlException
public boolean rename(VRL vrl, java.lang.String pathOrName) throws VlException
VRL
- original file or directorypathOrName
- is new name or complete path
VlException
public boolean existsDir(VRL location)
public boolean existsFile(VRL location)
public void close()
public VDir mkdir(VRL loc) throws VlException
VlException
public VDir mkdir(VRL loc, boolean ignoreExisting) throws VlException
VlException
public VDir getTempDir() throws VlException
VlException
public boolean setTempDir(VRL loc)
public VFile createFile(VRL filepath, boolean force) throws VlException
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |