Required Concepts

Before you can use the applet wrapper to transfer a file, you should understand the following concepts and working flow used by TIBCO MFT Command Center.

The definitions and explanations given here might be different than those defined in other parts of this documentation. The definitions and explanations here are for developers to understand the internal working flow of TIBCO MFT Command Center for transferring a file so that they can use SOAP calls to get the necessary information about a file and then use this applet wrapper to transfer a file.

File Record

A file record is a record in the TIBCO MFT Command Center database that represents a file. You can view all properties of a file using the web interface or the command line utility (the Platform Transfer Client Utility reveals less information than the Admin Client Utility). The important properties for file transfer are as follows:

Property Description
FileId This property must be used to set the fileID value of the applet wrapper.
SendRecvFlag This is a flag which indicates the transfer direction.

The transferDirection parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • S: SEND
  • R: RECEIVE
CompressType This is a flag which is used to indicate whether the transfer is compressed.

The compression parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • 0: NO
  • 1: YES
ChkptRestartFlag This is a flag which indicates whether checkpoint restart is enabled for the transfer.

The restartTransfer parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • 0: NO
  • 1: YES
ChkptInterval This property specifies the checkpoint interval in seconds.

The checkpointInterval parameter of the applet wrapper must be set according to this value.

The value in file record is in minutes. If you set the checkpointInterval parameter according the value in file record, you must convert the value in minutes to a value in seconds by multiplying by 60.

DirectoryTransfer This is a flag to indicate whether the transfer is a directory transfer.

The applet wrapper acts differently for a directory transfer. For more details on directory transfers, see Directory Transfers using Platform Command Line Utility.

The valid values are as follows:
  • 1: directory transfer.
  • 0: not a directory transfer.

Directory Transfer

TIBCO MFT Command Center can transfer a whole directory to or from the server. Inside the implementation, TIBCO MFT Command Center can transfer one file at a time to fulfill the directory transfer.

Before any file transfer, the user must know whether the transfer is a file transfer or a directory transfer by selecting DirectoryTransfer in the file record. If it is a file transfer, set the necessary parameters of the applet wrapper (for details of the parameters, see Class Parameters) and perform the transfer. If it is a directory transfer, it contains the following two situations:
  • Directory upload: set the localFileName parameter of the applet wrapper and transfer each file in the directory same as a normal file transfer.
  • Directory download: set the serverFileName parameter of the applet wrapper and download each file in the directory of the server. The server file name is the file name specified by the server for each file under its directory.