<?xml version="1.0" encoding="GBK"?>
<!-- version="V3.7.1.8" -->
<application name="A_msg_main" redirect="y">
    <mainsvr stop_sequence="ospf">
        <plugins>
            <plugin lib="fsc_f2log" getinfo="GetLogServiceInfo" load_level="1" note="日志">
                <args cfgfile="log.xml" default_level="3"/>
            </plugin>
            <plugin lib="fsc_f2mproxy" getinfo="GetMProxyInfo" load_level="1" note="管理代理"/>
            <plugin lib="fsc_f2ospf" getinfo="GetOSPFInfo" load_level="1" note="OSPF"/>
            <plugin lib="fsc_filter_log" getinfo="GetFilterLogInfo" load_level="1" note="抓包器">
                <args start="n"/>
            </plugin>
            <plugin lib="fsc_f2pack" getinfo="GetPackSvrInfo" load_level="0">
                <args v1_count="600" v2_count="600"/>
            </plugin>
            <plugin lib="fsc_esbmsg" getinfo="GetESBMessageFactoryInfo" load_level="0" note="ESB消息工厂插件">
                <args msgs_pool_number="8" init_msgs_inpool="10000" max_msgs_inapp="16000" max_msgs_inpool="10000"/>
            </plugin>
            <plugin lib="fsc_f2config" getinfo="GetCfgSvrInfo" load_level="0"/>
            <plugin lib="fsc_f2security" getinfo="GetSecurityInfo" load_level="1" note="安全服务"/>
            <!--消息中心插件配置-->
            <plugin lib="fsc_msgcenter" getinfo="GetMsgCenterInfo" load_level="1" note="消息中心">
                <args thread_num="4" heartbeatinterval="10" heartbeattimeoutnum="10" loglevel="50" outputdest="2" logfilename="mc" max_queue_num="10000"/>
                <inspect destip="127.0.0.1" destport="18888" udpsendinterval="60"/>
                <issuetype note="允许发布类型">
                    <type value="16" superior="0" note="期货16单腿行情">
                        <key name="contract_code"/>
                    </type>
                    <type value="22" superior="0" note="期货22新单腿行情">
                        <key name="contract_code"/>
                    </type>
                    <type value="33100" superior="0" note="期货33100行情">
                        <key name="contract_code"/>
                    </type>
                    <type value="17" superior="0" note="期货17回报">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="23" superior="0" note="期货23回报">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="33101" superior="0" note="期货反馈订阅">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="18" superior="0" note="期货18组合行情">
                        <key name="arbicontract_id"/>
                    </type>
                    <type value="33102" superior="0" note="期货33102组合行情">
                        <key name="arbicontract_id"/>
                    </type>
                    <type value="19" superior="0" note="客户端在线消息">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="24" superior="0" note="交易所状态24">
                        <key name="futu_exch_type"/>
                    </type>
                    <type value="33105" superior="0" note="交易所状态33105">
                        <key name="futu_exch_type"/>
                    </type>
                    <!--期货询价通知-->
                    <type value="33300" superior="0" note="期货询价通知">
                        <key name="contract_code"/>
                    </type>
                    <!--期货报价回报-->
                    <type value="33301" superior="0" note="期货报价回报">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <!--期权执行流水回报-->
                    <type value="33110" superior="0" note="期权执行流水回报">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <!--条件单相关主推-->
                    <type value="21" superior="0" note="条件单主推消息">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="33111" superior="0" note="策略单状态信息">
                        <key name="branch_no"/>
                        <key name="fund_account"/>
                    </type>
                    <type value="33117" superior="0" note="期权对冲设置通知">
                        <key name="fund_account"/>
                    </type>
					<type value="33106" superior="0" note="组合保证金确认">
                        <key name="fund_account"/>
                    </type>
                </issuetype>
            </plugin>
            <!--期货行情插件配置-->
            <plugin lib="fsc_futuhq" getinfo="GetFUTUHQInfo" load_level="2" note="期货行情">
                <args enableudprecv="1" heartbeattimeout="30" port="3613" subscibetomc="0" inittime="180000" sysversion="0"/>
            </plugin>
            <plugin lib="fsc_router" getinfo="GetRouterInfo" load_level="1" note="路由">
                <args thread_num="8"/>
                <routes>
                    <routetable functionid="8" pluginid="mproxy"/>
                    <routetable functionid="62020?;620299;" branchno="*;" pluginid="futuhq"/>
                    <routetable functionid="620???;" branchno="*;" pluginid="msgcenter"/>
                    <!-- 加载了fsc_bizcontrol_core后，插件会到后台校验密码，使用331124功能号，所以需要将主消息中心与交易链接起来 -->
                    <!-- 如果后台是UFT2.0+UF2.0，nodename是A_ufx_10_UF20，参加标准配置文件《参考A_ufx_10_UF20.xml》，根据实际情况修改 -->
                    <!-- 下面 fsc_channel_f2 插件的 parents 节点同样需要添加 -->
                    <!-- 务必需要在nrs中增加节点的IP、port 配置 -->
                    <routetable functionid="*;" branchno="*;" nodename="A_ufx_10_UF20"/>
                </routes>
                <defaultgateway>
                    <item destname="*" gateway="A_LINK_AR"/>
                </defaultgateway>
            </plugin>
            <plugin lib="fsc_channel_t2" getinfo="GetT2ChannelInfo" note="t2通道_外网">
                <config>
                    <safe safe_level="none"/>
                    <ssl cert_file="" cert_pwd=""/>
                    <network protocol="tcp" address="" port="9106"/>
                    <performance thread_count="10" max_connection="10000" init_connection="50" init_recv_buf_size="1024" init_send_buf_size="1024" send_queue_size="10000"/>
                    <limit license_dir="license" register_time="5" heartbeat_time="60" check_ordinal="1" forbidadmin="1"/>
                </config>
            </plugin>
            <plugin lib="fsc_channel_t2" getinfo="GetT2ChannelInfo" note="t2#1通道_内网" instance="1">
                <config>
                    <safe safe_level="none"/>
                    <ssl cert_file="" cert_pwd=""/>
                    <network protocol="tcp" address="" port="9107"/>
                    <performance thread_count="10" max_connection="10000" init_connection="50" init_recv_buf_size="1024" init_send_buf_size="1024" send_queue_size="10000"/>
                    <limit license_dir="license" register_time="5" heartbeat_time="60" check_ordinal="1"/>
                </config>
            </plugin>
            <plugin lib="fsc_channel_f2" getinfo="GetF2ChannelInfo" load_level="1" note="f2通道">
                <args port="18519" safetype="0" comm_thread_num="4"/>
                <parents>
                    <parent parentname="A_ufx_10_UF20"/>
                </parents>
            </plugin>
            <plugin lib="fsc_bizcontrol_core" getinfo="GetBizControlInfo" load_level="1" note="业务控制插件">
                <args template=""/>
                <biz>
                    <lib name="CheckIssue" note="订阅回报校验密码"/>
                </biz>
                <params>
                    <thread_num>8</thread_num>
                    <debug_level>0</debug_level>
                    <heartbeat>10</heartbeat>
                </params>
            </plugin>
            <plugin lib="fsc_pipe_mgr" is_inter="1" note="消息流水线配置">
                <pipe>ospf;router</pipe>
                <pipe>mproxy;router</pipe>
                <pipe>msgcenter;filter_log;router</pipe>
                <pipe>futuhq;filter_log;router</pipe>
                <pipe>t2;bizcontrol_core;router</pipe>
                <pipe>t2#1;filter_log;router</pipe>
                <pipe>f2;bizcontrol_core;router</pipe>
            </plugin>
        </plugins>
    </mainsvr>
</application>
