<!--
  ~ Copyright 2005-2011 WSO2, Inc. (http://wso2.com)
  ~
  ~ Licensed under the Apache License, Version 2.0 (the License);
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an AS IS BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<dataBridgeConfiguration>

    <workerThreads>10</workerThreads>
    <maxEventBufferCapacity>50</maxEventBufferCapacity>
    <eventBufferSize>2000</eventBufferSize>
    <clientTimeoutMin>30</clientTimeoutMin>

    <dataReceiver name="Thrift">
        <config name="tcpPort">7611</config>
        <config name="sslPort">7711</config>

        <!--The maximum size of the data receiving worker thread pool. Default value is 20.-->
        <!--<config name="tcpMaxWorkerThreads">5</config>-->

        <!--The minimum or the starting size of the data receiving worker thread pool. Default value is 5.-->
        <!--<config name="tcpMinWorkerThreads">2</config>-->

        <!--The request timeout in milli seconds. Default value is 20.-->
        <!--<config name="tcpRequestTimeout">15</config>-->

        <!--The stop timeout in milliseconds. Default value is 60.-->
        <!--<config name="tcpStopTimeoutVal">50</config>-->

        <!--The maximum size of the authenticating worker thread pool. Default value is 20.-->
        <!--<config name="sslMaxWorkerThreads">5</config>-->

        <!--The minimum or the starting size of the authenticating worker thread pool. Default value is 5.-->
        <!--<config name="sslMinWorkerThreads">2</config>-->

        <!--The request timeout in milli seconds. Default value is 20.-->
        <!--<config name="sslRequestTimeout">15</config>-->

        <!--The stop timeout in milliseconds. Default value is 60.-->
        <!--<config name="sslStopTimeoutVal">50</config>-->
    </dataReceiver>

    <dataReceiver name="Binary">
        <config name="tcpPort">9611</config>
        <config name="sslPort">9711</config>
        <config name="sslReceiverThreadPoolSize">100</config>
        <config name="tcpReceiverThreadPoolSize">100</config>
    </dataReceiver>

    <!--<streamDefinitions>
        <streamDefinition>
            {
             'name':'org.wso2.esb.MediatorStatistics',
             'version':'1.3.0',
             'nickName': 'Stock Quote Information',
             'description': 'Some Desc',
             'metaData':[
             {'name':'ipAdd','type':'STRING'}
             ],
             'payloadData':[
             {'name':'symbol','type':'STRING'},
             {'name':'price','type':'DOUBLE'},
             {'name':'volume','type':'INT'},
             {'name':'max','type':'DOUBLE'},
             {'name':'min','type':'Double'}
             ]
            }
        </streamDefinition>
        <streamDefinition domainName="wso2">
            {
             'name':'org.wso2.esb.MediatorStatistics',
             'version':'1.3.4',
             'nickName': 'Stock Quote Information',
             'description': 'Some Other Desc',
             'metaData':[
             {'name':'ipAdd','type':'STRING'}
             ],
             'payloadData':[
             {'name':'symbol','type':'STRING'},
             {'name':'price','type':'DOUBLE'},
             {'name':'volume','type':'INT'}
             ]
            }
        </streamDefinition>
    </streamDefinitions>-->

</dataBridgeConfiguration>
