|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FTPManager
A component charged with ftp server and client functionality.
An instance could be retrieved through
FTPManagerFactory.createFTPManager()
Method Summary | |
---|---|
boolean |
downloadDir(NodeInfo remoteNode,
java.lang.String dirPath)
Download the content of the directory dirPath from
the specified node in a directory with the same path on the local ftp
base directory |
boolean |
downloadDir(NodeInfo remoteNode,
java.lang.String dirPath,
java.lang.String destDir)
Download the content of the directory dirPath from
the specified node in the directory destDir |
boolean |
downloadFile(NodeInfo remoteNode,
java.lang.String filePath)
Download the specified file from the specified node. |
boolean |
downloadFile(NodeInfo remoteNode,
java.lang.String srcFilePath,
java.lang.String dstFilePath)
Download the file srcFilePath from the specified node. |
java.lang.String |
getBaseDir()
Returns the path to the directory used as root directory by FTP server |
int |
getFtpPort()
The local port on which FTP server listen |
java.lang.String |
getIpAddress()
Find for a InetAddress which is not a loopback address
and return InetAddress.getHostAddress() result. |
void |
startLocalServer()
Starts the local ftp server |
Method Detail |
---|
void startLocalServer() throws java.io.IOException
java.io.IOException
java.lang.String getBaseDir()
null
if the
server has not been stared yetint getFtpPort()
java.lang.String getIpAddress()
InetAddress
which is not a loopback address
and return InetAddress.getHostAddress()
result.
If all InetAddress
are loopback addresses utilize
InetAddress.getLocalHost()
boolean downloadDir(NodeInfo remoteNode, java.lang.String dirPath)
dirPath
from
the specified node in a directory with the same path on the local ftp
base directory
remoteNode
- dirPath
-
boolean downloadDir(NodeInfo remoteNode, java.lang.String dirPath, java.lang.String destDir)
dirPath
from
the specified node in the directory destDir
remoteNode
- dirPath
- destDir
-
boolean downloadFile(NodeInfo remoteNode, java.lang.String filePath)
remoteNode
- filePath
-
boolean downloadFile(NodeInfo remoteNode, java.lang.String srcFilePath, java.lang.String dstFilePath)
srcFilePath
from the specified node.
The file will be downloaded in the specified path dstFilePath
which must contain also the file name.
remoteNode
- srcFilePath
- dstFilePath
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |