(no commit message)
[utils] / crawler / kissweb / src / org.wamblee.crawler.kiss.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3
4 <beans>
5  
6   <!-- The object that tells quartz how to schedule the crawler --> 
7   <bean id="org.wamblee.crawler.kiss.scheduling.CrawlerScheduler"
8       class="org.wamblee.crawler.kiss.scheduling.quartz.QuartzCrawlerScheduler">
9       <constructor-arg><value type="int">3600</value></constructor-arg>
10   </bean>   
11   
12   <!-- The object which executes the crawler --> 
13   <bean id="org.wamblee.crawler.kiss.scheduling.CrawlerExecutor"
14       class="org.wamblee.crawler.kiss.scheduling.CrawlerExecutorImpl">
15       <constructor-arg><value>${org.wamblee.crawler.config.epg}</value></constructor-arg>
16       <constructor-arg><value>${org.wamblee.crawler.config.programs}</value></constructor-arg>
17       <constructor-arg><ref bean="org.wamblee.crawler.kiss.notification.Notifier"/></constructor-arg>
18   </bean>
19   
20   <!-- The object that determines whether to execute the crawler when it is signalled by 
21        the scheduler. --> 
22   <bean id="org.wamblee.crawler.kiss.scheduling.CrawlerStatus"
23       class="org.wamblee.crawler.kiss.scheduling.CrawlerStatus">
24       <constructor-arg><ref local="org.wamblee.crawler.kiss.scheduling.CrawlerExecutor"/></constructor-arg>
25       <!-- The interval of the day in hours [hourmin, hourmax] over which crawling will be done and 
26            retried if necessary --> 
27       <constructor-arg><value type="int">5</value></constructor-arg>  
28       <constructor-arg><value type="int">24</value></constructor-arg>  
29   </bean>
30   
31 </beans>