<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-4.0.xsd"
        >

    <bean id="jobTracker" class="com.lts.spring.JobTrackerFactoryBean" init-method="start">
        <property name="clusterName" value="test_cluster"/>
        <property name="registryAddress" value="zookeeper://127.0.0.1:2181"/>
        <property name="listenPort" value="30005"/>
        <property name="masterChangeListeners">
            <list>
                <bean class="com.lts.example.support.MasterChangeListenerImpl"/>
            </list>
        </property>
        <property name="configs">
            <props>
                <prop key="job.logger">mongo</prop>
                <prop key="job.queue">mongo</prop>
                <prop key="mongo.addresses">127.0.0.1:27017</prop>
                <prop key="mongo.database">lts</prop>
                <prop key="zk.client">zkclient</prop>
            </props>
        </property>
    </bean>

</beans>