(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>/home/erik/crawler/config.xml</value></constructor-arg>
16       <constructor-arg><value>/home/erik/crawler/programs.xml</value></constructor-arg>
17   </bean>
18   
19   <!-- The object that determines whether to execute the crawler when it is signalled by 
20        the scheduler. --> 
21   <bean id="org.wamblee.crawler.kiss.scheduling.CrawlerSchedule"
22       class="org.wamblee.crawler.kiss.scheduling.CrawlerSchedule">
23       <constructor-arg><ref local="org.wamblee.crawler.kiss.scheduling.CrawlerExecutor"/></constructor-arg>
24       <!-- The interval of the day in hours [hourmin, hourmax] over which crawling will be done and 
25            retried if necessary --> 
26       <constructor-arg><value type="int">5</value></constructor-arg>  
27       <constructor-arg><value type="int">24</value></constructor-arg>  
28   </bean>
29   
30 </beans>