File transfer progress message examples

When a transfer is in progress, messages are published to the SYSTEM.FTE topic with a topic string of Transfers/agent_name/transfer_ID. The XML examples show the progress message for a single file transfer and for a multiple file transfer.


Single file transfer

The following example shows the details of a single file transfer that is in progress.

<?xml version="1.0" encoding="UTF-8"?>
<transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             version="4.00" 
             ID="414d51205553322e42494e44494e47538b0f404d223d0020" 
             xsi:noNamespaceSchemaLocation="TransferStatus.xsd">   
        <sourceAgent agent="US2.BINDINGS.FILE" QMgr="US2.BINDINGS"/>   
        <destinationAgent agent="US2.BINDINGS.FILE" QMgr="US2.BINDINGS"/>   
        <transferSet time="2011-01-26T13:03:26.542Z">     
        <stats bytes="1198" seconds="0.018" currentItem="1" totalItems="1"/>     
        <current transferred="1151" size="1151">       
            <source>         
                <file>/etc/passwd</file>       
            </source>       
            <destination>         
                <file>/tmp/passwd</file>       
            </destination>     
        </current>   
    </transferSet>
</transaction>


Multiple file transfer

If there were more files in the transfer set, the transfer status message indicates which one is being processed and how many bytes have been transferred so far.
<?xml version="1.0" encoding="UTF-8"?>
<transaction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             version="4.00" 
             ID="414d51205553322e42494e44494e47538b0f404d035c0020" 
             xsi:noNamespaceSchemaLocation="TransferStatus.xsd">   
    <sourceAgent agent="US2.BINDINGS.FILE" QMgr="US2.BINDINGS"/>   
    <destinationAgent agent="US2.BINDINGS.FILE" QMgr="US2.BINDINGS"/>   
    <transferSet time="2011-01-26T13:12:58.636Z">     
        <stats bytes="440" seconds="0.082" currentItem="10" totalItems="10"/>     
        <current transferred="0" size="0">       
            <source>         
                <file>/srv/nfs/incoming/file10.txt</file>       
            </source>       
            <destination>         
                <file>/srv/nfs/outgoing/file10.txt</file>       
            </destination>    
        </current>   
    </transferSet>
</transaction>
Parent topic: File transfer status message format