|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.gridface.impl.directorybrowser.FileTransferObjectImpl
| Constructor Summary | |
FileTransferObjectImpl(StatusListener statusListener,
GridCommandManager gcm)
|
|
| Method Summary | |
GridCommand |
close()
Call when browser window is closed. |
GridCommand |
connect(String protocol,
String host,
String port)
Make a new connection * |
GridCommand |
disConnect()
Close the connection. |
void |
execute(GridCommand command,
boolean background)
|
GridCommand |
exists(URI uri)
Check if file or directory specified by the URI exists |
GridCommand |
getCurrentDirectory()
Gets the directory we're currently working in. |
GridCommand |
getDir(URI uriRemote,
URI uriLocal)
Get a Dir. |
GridCommand |
getFile(URI uriRemote,
URI uriLocal)
Get a file. |
String |
getHost()
Get Hostname of the underlying client |
String |
getPort()
Get Port of the underlying client |
GridCommand |
getProperties(URI uri)
Retrieve file properties |
String |
getProtocol()
Set the protocol for the underlying connection |
void |
getProxy()
Get Proxy for this connection |
String |
getSecurityContext()
Get Port of the underlying client |
Identity |
getSessionId()
|
GridCommand |
isDirectory(URI uri)
Is the URI a directory? |
GridCommand |
ls()
Returns an Collection of the current directory. |
GridCommand |
ls(URI uri)
Returns and Collection of the directory specified by the URI. |
GridCommand |
makeDirectory(URI uri)
Creates the directory specified by the URI |
GridCommand |
putDir(URI uriLocal,
URI uriRemote)
Put a Dir. |
GridCommand |
putFile(URI uriLocal,
URI uriRemote)
Put a file. |
GridCommand |
reConnect()
reconnect the connection * |
GridCommand |
rmdir(URI uri)
Remove directory pointed to URI from host |
GridCommand |
rmfile(URI uri)
Remove file pointed by URI from host |
GridCommand |
setCurrentDirectory(URI uri)
Set Current Directory |
void |
setHost(String host)
Set the hostname for the underlying connection |
void |
setPassword(String password)
|
void |
setPort(String port)
Set port for the underlying connection |
GridCommand |
setProperties(URI uri)
Set properties of the file pointed by URI |
void |
setProtocol(String protocol)
Set the protocl for the underlyging connection |
void |
setProxy()
Set proxy for this connection |
void |
setSecurityContext(String port)
Set port for the underlying connection |
void |
setSessionId(Identity sessionId)
|
void |
setUsername(String username)
|
GridCommand |
size(URI uri)
Get size of the file specified by URI |
GridCommand |
thirdPartyCopyFile(URI uriSource,
URI uriDestination)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileTransferObjectImpl(StatusListener statusListener,
GridCommandManager gcm)
| Method Detail |
public void execute(GridCommand command,
boolean background)
throws Exception
execute in interface FileTransferObjectExceptionpublic void setSessionId(Identity sessionId)
setSessionId in interface FileTransferObjectpublic Identity getSessionId()
getSessionId in interface FileTransferObjectpublic GridCommand getProperties(URI uri)
FileTransferObject
getProperties in interface FileTransferObjectpublic GridCommand setProperties(URI uri)
FileTransferObject
setProperties in interface FileTransferObject
public GridCommand thirdPartyCopyFile(URI uriSource,
URI uriDestination)
thirdPartyCopyFile in interface FileTransferObject
public GridCommand getFile(URI uriRemote,
URI uriLocal)
FileTransferObject
getFile in interface FileTransferObject
public GridCommand putFile(URI uriLocal,
URI uriRemote)
FileTransferObject
putFile in interface FileTransferObject
public GridCommand getDir(URI uriRemote,
URI uriLocal)
FileTransferObject
getDir in interface FileTransferObject
public GridCommand putDir(URI uriLocal,
URI uriRemote)
FileTransferObject
putDir in interface FileTransferObjectpublic GridCommand rmfile(URI uri)
FileTransferObject
rmfile in interface FileTransferObjectpublic GridCommand rmdir(URI uri)
FileTransferObject
rmdir in interface FileTransferObjectpublic GridCommand setCurrentDirectory(URI uri)
FileTransferObject
setCurrentDirectory in interface FileTransferObjectpublic GridCommand getCurrentDirectory()
getCurrentDirectory in interface FileTransferObjectpublic GridCommand makeDirectory(URI uri)
makeDirectory in interface FileTransferObjecturi - The URI of the directory we want to create.public GridCommand ls()
Collection of the current directory.
ls in interface FileTransferObjectCollection of type FileInfopublic GridCommand ls(URI uri)
Collection of the directory specified by the URI.
ls in interface FileTransferObjecturi - The URI whose directory listing we want.
Collection of type FileInfopublic GridCommand exists(URI uri)
FileTransferObject
exists in interface FileTransferObjectpublic GridCommand size(URI uri)
FileTransferObject
size in interface FileTransferObjectpublic GridCommand isDirectory(URI uri)
FileTransferObject
isDirectory in interface FileTransferObjectpublic String getHost()
ConnectionObject
getHost in interface ConnectionObjectpublic void setHost(String host)
ConnectionObject
setHost in interface ConnectionObjectpublic String getPort()
ConnectionObject
getPort in interface ConnectionObjectpublic void setPort(String port)
ConnectionObject
setPort in interface ConnectionObjectpublic String getProtocol()
ConnectionObject
getProtocol in interface ConnectionObjectpublic void setProtocol(String protocol)
ConnectionObject
setProtocol in interface ConnectionObjectpublic String getSecurityContext()
ConnectionObject
getSecurityContext in interface ConnectionObjectpublic void setSecurityContext(String port)
ConnectionObject
setSecurityContext in interface ConnectionObject
public GridCommand connect(String protocol,
String host,
String port)
throws Exception
ConnectionObject
connect in interface ConnectionObjectExceptionpublic GridCommand disConnect()
ConnectionObject
disConnect in interface ConnectionObject
public GridCommand reConnect()
throws Exception
ConnectionObject
reConnect in interface ConnectionObjectExceptionpublic GridCommand close()
ConnectionObject
close in interface ConnectionObjectpublic void getProxy()
ConnectionObject
getProxy in interface ConnectionObjectpublic void setProxy()
ConnectionObject
setProxy in interface ConnectionObjectpublic void setUsername(String username)
setUsername in interface FileTransferObjectpublic void setPassword(String password)
setPassword in interface FileTransferObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||