|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.fc.filetransferfc.FileTransferOperator
public class FileTransferOperator
The File Transfer Operator that connects and Transfer Files to a target machine
| Constructor Summary | |
|---|---|
FileTransferOperator(Properties p,
Log log)
Constructor for the FileTransferAgent |
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection to the target |
void |
createDirectory(String dir)
Create a directory on the target machine |
Vector<String> |
getProtocolList()
Iterates through all the protocols and tries to make a connection using each of them with the specified configuration |
boolean |
isExists(String filePath)
Checks the given file exists or not on remote machine |
String[] |
list(String path)
Checks the given file exists or not on remote machine |
boolean |
prepareConnection()
Creates a connection with the target machine |
void |
printDebugMessage(String msgKey,
Object[] params)
Prints a debug message if debug mode for the Components is enabled. |
void |
receiveFile(String source,
String target)
Receives a file from target to source |
void |
transferFile(String source,
String target)
Transfers file from source to target |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTransferOperator(Properties p,
Log log)
lp - The LogProxy for loggingp - The configuration properties for the initialization of the
connection| Method Detail |
|---|
public boolean prepareConnection()
throws RemoteConnectException,
ParamException,
Exception
RemoteConnectException
ParamException
Exception
public void transferFile(String source,
String target)
throws Exception
source - Path to source filetarget - Path to destination file on target machine
Exception - If file transfer is unsuccessful
public void receiveFile(String source,
String target)
throws Exception
source - Path to source filetarget - Path to destination file on local machine
Exception - If file transfer is unsuccessful
public void createDirectory(String dir)
throws Exception
dir - Path of the folder to be created
Exception - If the directory creation is not successful.
public boolean isExists(String filePath)
throws Exception
filePath - Path of the file
Exception
public String[] list(String path)
throws Exception
path - Path of the file
Exceptionpublic void close()
public Vector<String> getProtocolList()
public void printDebugMessage(String msgKey,
Object[] params)
msgKey - message keyparams - place holder for debug messages
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||