+

Search Tips | Advanced Search

MFT schedule list message format

The XML message that is published to a retained publication to the topic string SYSTEM.FTE/Scheduler/agent_name conforms to the ScheduleList.xsd schema. This XML message lists all active schedules belonging to that agent. This information is used by the fteListScheduledTransfers command and the IBM MQ Explorer to display a list of schedules to the user. The ScheduleList.xsd schema document is located in the MQ_INSTALLATION_PATH/mqft/samples/schema directory. The ScheduleList.xsd schema imports FileTransfer.xsd, which is in the same directory.


Schema

The following schema describes which elements are valid in a monitor list XML message.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:include schemaLocation="FileTransfer.xsd"/>

    <xsd:element name="schedules">         
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="managedTransfer" type="scheduledManagedTransferType" minOccurs="0" maxOccurs="unbounded"/>
            </xsd:sequence>
            <xsd:attribute name="version" type="versionType"            use="required"/>
            <xsd:attribute name="size"    type="xsd:nonNegativeInteger" use="required"/>
            <xsd:attribute name="agent"   type="xsd:string"             use="required"/>
        </xsd:complexType>
    </xsd:element> 

    <xsd:complexType name="scheduledManagedTransferType">
        <xsd:sequence>
            <xsd:element name="originator"       type="origRequestType"  maxOccurs="1" minOccurs="1"/>
            <xsd:element name="schedule"         type="scheduleListType" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="sourceAgent"      type="agentType"        maxOccurs="1" minOccurs="1"/>  
            <xsd:element name="destinationAgent" type="agentClientType"  maxOccurs="1" minOccurs="1"/>
            <xsd:element name="trigger"          type="triggerType"      maxOccurs="1" minOccurs="0"/>
            <xsd:element name="reply"            type="replyType"        maxOccurs="1" minOccurs="0"/>
            <xsd:element name="transferSet"      type="transferSetType"  maxOccurs="1" minOccurs="1"/>
            <xsd:element name="job"              type="jobType"          maxOccurs="1" minOccurs="0" />
        </xsd:sequence>
        <xsd:attribute name="id" type="idType" use="required"/>
    </xsd:complexType>      

    <xsd:complexType name="scheduleListType">
        <xsd:sequence>
            <xsd:element name="submit" type="submitType"      maxOccurs="1" minOccurs="1"/>
            <xsd:element name="repeat" type="repeatType"      maxOccurs="1" minOccurs="0"/>
            <xsd:element name="next"   type="noZoneTimeType"  maxOccurs="1" minOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>


Understanding the schedule list message

The elements and attributes used in the schedule list messages are described in the following list:


Example

<?xml version="1.0" encoding="UTF-8"?>
<schedules xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           size="2" 
           version="4.00" 
           agent="AGENT_JUPITER" 
           xsi:noNamespaceSchemaLocation="ScheduleList.xsd">   
    <managedTransfer id="1">     
        <originator>       
            <hostName>example.com.</hostName>       
            <userID>mqm</userID>     
        </originator>     
        <schedule>       
            <submit timebase="admin" timezone="Europe/London">2010-01-01T21:00+0000</submit>       
            <next>2010-01-01T21:00+0000</next>     
        </schedule>     
        <sourceAgent agent="AGENT_JUPITER" QMgr="QM_JUPITER"/>     
        <destinationAgent agent="AGENT_SATURN" QMgr="QM_JUPITER"/>     
        <reply QMGR="QM_JUPITER">WMQFTE.4D400F8B20004E06</reply>     
        <transferSet>       
            <item mode="binary" checksumMethod="MD5">         
                <source recursive="false" disposition="leave">           
                    <file>/etc/passwd</file>         
                </source>         
                <destination type="directory" exist="overwrite">           
                    <file>/tmp</file>         
                </destination>       
            </item>     
        </transferSet>   
    </managedTransfer>   
    <managedTransfer id="2">     
        <originator>       
            <hostName>example.com.</hostName>       
            <userID>mqm</userID>     
        </originator>     
        <schedule>       
            <submit timebase="admin" timezone="Europe/London">2010-12-31T09:00+0000</submit>       
            <next>2010-12-31T09:00+0000</next>     
        </schedule>     
        <sourceAgent agent="AGENT_JUPITER" QMgr="QM_JUPITER"/>     
        <destinationAgent agent="AGENT_NEPTUNE" QMgr="QM_JUPITER"/>     
        <reply QMGR="QM_JUPITER">WMQFTE.4D400F8B20004E09</reply>     
        <transferSet>       
            <item mode="binary" checksumMethod="MD5">         
                <source recursive="false" disposition="leave">           
                    <file>/etc/passwd</file>         
                </source>         
                <destination type="directory" exist="overwrite">           
                    <file>/tmp</file>         
                </destination>       
            </item>     
        </transferSet>   
    </managedTransfer>
</schedules