文件传输进度消息示例

传输期间,会将消息发布到主题字符串为 Transfers/agent_name/transfer_ID 的 SYSTEM.FTE 主题。 XML 示例会显示单个文件传输和多个文件传输的进度消息。

单个文件传输

以下示例显示了正在进行的单个文件传输的详细信息。

<?xml version="1.0" encoding="UTF-8"?>
<transaction xmlns:xsi="https://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>

多个文件传输

如果传输集中存在多个文件,那么传输状态消息会表明正在处理哪个文件,以及到目前为止,已传输多少字节。
<?xml version="1.0" encoding="UTF-8"?>
<transaction xmlns:xsi="https://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>