ccordovas

Untitled

Aug 31st, 2014
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. HERITRIX 3 CRAWL JOB CONFIGURATION FILE
  4.  
  5. This is a relatively minimal configuration suitable for many crawls.
  6.  
  7. Commented-out beans and properties are provided as an example; values
  8. shown in comments reflect the actual defaults which are in effect
  9. if not otherwise specified specification. (To change from the default
  10. behavior, uncomment AND alter the shown values.)
  11. -->
  12. <beans xmlns="http://www.springframework.org/schema/beans"
  13. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  14. xmlns:context="http://www.springframework.org/schema/context"
  15. xmlns:aop="http://www.springframework.org/schema/aop"
  16. xmlns:tx="http://www.springframework.org/schema/tx"
  17. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  18. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  19. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  20. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  21.  
  22. <context:annotation-config/>
  23.  
  24. <!--
  25. OVERRIDES
  26. Values elsewhere in the configuration may be replaced ('overridden')
  27. by a Properties map declared in a PropertiesOverrideConfigurer,
  28. using a dotted-bean-path to address individual bean properties.
  29. This allows us to collect a few of the most-often changed values
  30. in an easy-to-edit format here at the beginning of the model
  31. configuration.
  32. -->
  33. <!-- overrides from a text property list -->
  34. <bean id="simpleOverrides" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
  35. <property name="properties">
  36. <value>
  37. # This Properties map is specified in the Java 'property list' text format
  38. # http://java.sun.com/javase/6/docs/api/java/util/Properties.html#load%28java.io.Reader%29
  39.  
  40. metadata.operatorContactUrl=http://www.dibam.cl
  41. metadata.jobName=basic
  42. metadata.description=Basic crawl starting with useful defaults
  43.  
  44. ##..more?..##
  45. </value>
  46. </property>
  47. </bean>
  48.  
  49. <!-- overrides from declared <prop> elements, more easily allowing
  50. multiline values or even declared beans -->
  51. <bean id="longerOverrides" class="org.springframework.beans.factory.config.PropertyOverrideConfigurer">
  52. <property name="properties">
  53. <props>
  54. <prop key="seeds.textSource.value">
  55.  
  56. # URLS HERE
  57. http://www.bibliometro.cl/
  58.  
  59. </prop>
  60. </props>
  61. </property>
  62. </bean>
  63.  
  64. <!-- CRAWL METADATA: including identification of crawler/operator -->
  65. <bean id="metadata" class="org.archive.modules.CrawlMetadata" autowire="byName">
  66. <property name="operatorContactUrl" value="[see override above]"/>
  67. <property name="jobName" value="[see override above]"/>
  68. <property name="description" value="[see override above]"/>
  69. <!-- <property name="robotsPolicyName" value="obey"/> -->
  70. <!-- <property name="operator" value=""/> -->
  71. <!-- <property name="operatorFrom" value=""/> -->
  72. <!-- <property name="organization" value=""/> -->
  73. <!-- <property name="audience" value=""/> -->
  74. <!-- <property name="userAgentTemplate"
  75. value="Mozilla/5.0 (compatible; heritrix/@VERSION@ +@OPERATOR_CONTACT_URL@)"/> -->
  76.  
  77. </bean>
  78.  
  79. <!-- SEEDS: crawl starting points
  80. ConfigString allows simple, inline specification of a moderate
  81. number of seeds; see below comment for example of using an
  82. arbitrarily-large external file. -->
  83. <bean id="seeds" class="org.archive.modules.seeds.TextSeedModule">
  84. <property name="textSource">
  85. <bean class="org.archive.spring.ConfigString">
  86. <property name="value">
  87. <value>
  88. # [see override above]
  89. </value>
  90. </property>
  91. </bean>
  92. </property>
  93. <!-- <property name='sourceTagSeeds' value='false'/> -->
  94. <!-- <property name='blockAwaitingSeedLines' value='-1'/> -->
  95. </bean>
  96.  
  97. <!-- SEEDS ALTERNATE APPROACH: specifying external seeds.txt file in
  98. the job directory, similar to the H1 approach.
  99. Use either the above, or this, but not both. -->
  100. <!--
  101. <bean id="seeds" class="org.archive.modules.seeds.TextSeedModule">
  102. <property name="textSource">
  103. <bean class="org.archive.spring.ConfigFile">
  104. <property name="path" value="seeds.txt" />
  105. </bean>
  106. </property>
  107. <property name='sourceTagSeeds' value='false'/>
  108. <property name='blockAwaitingSeedLines' value='-1'/>
  109. </bean>
  110. -->
  111.  
  112. <bean id="acceptSurts" class="org.archive.modules.deciderules.surt.SurtPrefixedDecideRule">
  113. <!-- <property name="decision" value="ACCEPT"/> -->
  114. <!-- <property name="seedsAsSurtPrefixes" value="true" /> -->
  115. <!-- <property name="alsoCheckVia" value="false" /> -->
  116. <!-- <property name="surtsSourceFile" value="" /> -->
  117. <!-- <property name="surtsDumpFile" value="${launchId}/surts.dump" /> -->
  118. <!-- <property name="surtsSource">
  119. <bean class="org.archive.spring.ConfigString">
  120. <property name="value">
  121. <value>
  122. # example.com
  123. # http://www.example.edu/path1/
  124. # +http://(org,example,
  125. </value>
  126. </property>
  127. </bean>
  128. </property> -->
  129. </bean>
  130.  
  131. <!-- SCOPE: rules for which discovered URIs to crawl; order is very
  132. important because last decision returned other than 'NONE' wins. -->
  133. <bean id="scope" class="org.archive.modules.deciderules.DecideRuleSequence">
  134. <!-- <property name="logToFile" value="false" /> -->
  135. <property name="rules">
  136. <list>
  137. <!-- Begin by REJECTing all... -->
  138. <bean class="org.archive.modules.deciderules.RejectDecideRule" />
  139. <!-- ...then ACCEPT those within configured/seed-implied SURT prefixes... -->
  140. <ref bean="acceptSurts" />
  141. <!-- ...but REJECT those more than a configured link-hop-count from start... -->
  142. <bean class="org.archive.modules.deciderules.TooManyHopsDecideRule">
  143. <!-- <property name="maxHops" value="20" /> -->
  144. </bean>
  145. <!-- ...but ACCEPT those more than a configured link-hop-count from start... -->
  146. <bean class="org.archive.modules.deciderules.TransclusionDecideRule">
  147. <!-- <property name="maxTransHops" value="2" /> -->
  148. <!-- <property name="maxSpeculativeHops" value="1" /> -->
  149. </bean>
  150. <!-- ...but REJECT those from a configurable (initially empty) set of REJECT SURTs... -->
  151. <bean class="org.archive.modules.deciderules.surt.SurtPrefixedDecideRule">
  152. <property name="decision" value="REJECT"/>
  153. <property name="seedsAsSurtPrefixes" value="false"/>
  154. <property name="surtsDumpFile" value="${launchId}/negative-surts.dump" />
  155. <!-- <property name="surtsSource">
  156. <bean class="org.archive.spring.ConfigFile">
  157. <property name="path" value="negative-surts.txt" />
  158. </bean>
  159. </property> -->
  160. </bean>
  161. <!-- ...and REJECT those from a configurable (initially empty) set of URI regexes... -->
  162. <bean class="org.archive.modules.deciderules.MatchesListRegexDecideRule">
  163. <property name="decision" value="REJECT"/>
  164. <!-- <property name="listLogicalOr" value="true" /> -->
  165. <!-- <property name="regexList">
  166. <list>
  167. </list>
  168. </property> -->
  169. </bean>
  170. <!-- ...and REJECT those with suspicious repeating path-segments... -->
  171. <bean class="org.archive.modules.deciderules.PathologicalPathDecideRule">
  172. <!-- <property name="maxRepetitions" value="2" /> -->
  173. </bean>
  174. <!-- ...and REJECT those with more than threshold number of path-segments... -->
  175. <bean class="org.archive.modules.deciderules.TooManyPathSegmentsDecideRule">
  176. <!-- <property name="maxPathDepth" value="20" /> -->
  177. </bean>
  178. <!-- ...but always ACCEPT those marked as prerequisitee for another URI... -->
  179. <bean class="org.archive.modules.deciderules.PrerequisiteAcceptDecideRule">
  180. </bean>
  181. <!-- ...but always REJECT those with unsupported URI schemes -->
  182. <bean class="org.archive.modules.deciderules.SchemeNotInSetDecideRule">
  183. </bean>
  184. </list>
  185. </property>
  186. </bean>
  187.  
  188. <!--
  189. PROCESSING CHAINS
  190. Much of the crawler's work is specified by the sequential
  191. application of swappable Processor modules. These Processors
  192. are collected into three 'chains'. The CandidateChain is applied
  193. to URIs being considered for inclusion, before a URI is enqueued
  194. for collection. The FetchChain is applied to URIs when their
  195. turn for collection comes up. The DispositionChain is applied
  196. after a URI is fetched and analyzed/link-extracted.
  197. -->
  198.  
  199. <!-- CANDIDATE CHAIN -->
  200. <!-- first, processors are declared as top-level named beans -->
  201. <bean id="candidateScoper" class="org.archive.crawler.prefetch.CandidateScoper">
  202. </bean>
  203. <bean id="preparer" class="org.archive.crawler.prefetch.FrontierPreparer">
  204. <!-- <property name="preferenceDepthHops" value="-1" /> -->
  205. <!-- <property name="preferenceEmbedHops" value="1" /> -->
  206. <!-- <property name="canonicalizationPolicy">
  207. <ref bean="canonicalizationPolicy" />
  208. </property> -->
  209. <!-- <property name="queueAssignmentPolicy">
  210. <ref bean="queueAssignmentPolicy" />
  211. </property> -->
  212. <!-- <property name="uriPrecedencePolicy">
  213. <ref bean="uriPrecedencePolicy" />
  214. </property> -->
  215. <!-- <property name="costAssignmentPolicy">
  216. <ref bean="costAssignmentPolicy" />
  217. </property> -->
  218. </bean>
  219. <!-- now, processors are assembled into ordered CandidateChain bean -->
  220. <bean id="candidateProcessors" class="org.archive.modules.CandidateChain">
  221. <property name="processors">
  222. <list>
  223. <!-- apply scoping rules to each individual candidate URI... -->
  224. <ref bean="candidateScoper"/>
  225. <!-- ...then prepare those ACCEPTed to be enqueued to frontier. -->
  226. <ref bean="preparer"/>
  227. </list>
  228. </property>
  229. </bean>
  230.  
  231. <!-- FETCH CHAIN -->
  232. <!-- first, processors are declared as top-level named beans -->
  233. <bean id="preselector" class="org.archive.crawler.prefetch.Preselector">
  234. <!-- <property name="recheckScope" value="false" /> -->
  235. <!-- <property name="blockAll" value="false" /> -->
  236. <!-- <property name="blockByRegex" value="" /> -->
  237. <!-- <property name="allowByRegex" value="" /> -->
  238. </bean>
  239. <bean id="preconditions" class="org.archive.crawler.prefetch.PreconditionEnforcer">
  240. <!-- <property name="ipValidityDurationSeconds" value="21600" /> -->
  241. <!-- <property name="robotsValidityDurationSeconds" value="86400" /> -->
  242. <!-- <property name="calculateRobotsOnly" value="false" /> -->
  243. </bean>
  244. <bean id="fetchDns" class="org.archive.modules.fetcher.FetchDNS">
  245. <!-- <property name="acceptNonDnsResolves" value="false" /> -->
  246. <!-- <property name="digestContent" value="true" /> -->
  247. <!-- <property name="digestAlgorithm" value="sha1" /> -->
  248. </bean>
  249. <!-- <bean id="fetchWhois" class="org.archive.modules.fetcher.FetchWhois">
  250. <property name="specialQueryTemplates">
  251. <map>
  252. <entry key="whois.verisign-grs.com" value="domain %s" />
  253. <entry key="whois.arin.net" value="z + %s" />
  254. <entry key="whois.denic.de" value="-T dn %s" />
  255. </map>
  256. </property>
  257. </bean> -->
  258. <bean id="fetchHttp" class="org.archive.modules.fetcher.FetchHTTP">
  259. <!-- <property name="useHTTP11" value="false" /> -->
  260. <!-- <property name="maxLengthBytes" value="0" /> -->
  261. <!-- <property name="timeoutSeconds" value="1200" /> -->
  262. <!-- <property name="maxFetchKBSec" value="0" /> -->
  263. <!-- <property name="defaultEncoding" value="ISO-8859-1" /> -->
  264. <!-- <property name="shouldFetchBodyRule">
  265. <bean class="org.archive.modules.deciderules.AcceptDecideRule"/>
  266. </property> -->
  267. <!-- <property name="soTimeoutMs" value="20000" /> -->
  268. <!-- <property name="sendIfModifiedSince" value="true" /> -->
  269. <!-- <property name="sendIfNoneMatch" value="true" /> -->
  270. <!-- <property name="sendConnectionClose" value="true" /> -->
  271. <!-- <property name="sendReferer" value="true" /> -->
  272. <!-- <property name="sendRange" value="false" /> -->
  273. <!-- <property name="ignoreCookies" value="false" /> -->
  274. <!-- <property name="sslTrustLevel" value="OPEN" /> -->
  275. <!-- <property name="acceptHeaders">
  276. <list>
  277. <value>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</value>
  278. </list>
  279. </property>
  280. -->
  281. <!-- <property name="httpBindAddress" value="" /> -->
  282. <!-- <property name="httpProxyHost" value="" /> -->
  283. <!-- <property name="httpProxyPort" value="0" /> -->
  284. <!-- <property name="httpProxyUser" value="" /> -->
  285. <!-- <property name="httpProxyPassword" value="" /> -->
  286. <!-- <property name="digestContent" value="true" /> -->
  287. <!-- <property name="digestAlgorithm" value="sha1" /> -->
  288. </bean>
  289. <bean id="extractorHttp" class="org.archive.modules.extractor.ExtractorHTTP">
  290. </bean>
  291. <bean id="extractorHtml" class="org.archive.modules.extractor.ExtractorHTML">
  292. <!-- <property name="extractJavascript" value="true" /> -->
  293. <!-- <property name="extractValueAttributes" value="true" /> -->
  294. <!-- <property name="ignoreFormActionUrls" value="false" /> -->
  295. <!-- <property name="extractOnlyFormGets" value="true" /> -->
  296. <!-- <property name="treatFramesAsEmbedLinks" value="true" /> -->
  297. <!-- <property name="ignoreUnexpectedHtml" value="true" /> -->
  298. <!-- <property name="maxElementLength" value="1024" /> -->
  299. <!-- <property name="maxAttributeNameLength" value="1024" /> -->
  300. <!-- <property name="maxAttributeValueLength" value="16384" /> -->
  301. </bean>
  302. <bean id="extractorCss" class="org.archive.modules.extractor.ExtractorCSS">
  303. </bean>
  304. <bean id="extractorJs" class="org.archive.modules.extractor.ExtractorJS">
  305. </bean>
  306. <bean id="extractorSwf" class="org.archive.modules.extractor.ExtractorSWF">
  307. </bean>
  308. <!-- now, processors are assembled into ordered FetchChain bean -->
  309. <bean id="fetchProcessors" class="org.archive.modules.FetchChain">
  310. <property name="processors">
  311. <list>
  312. <!-- re-check scope, if so enabled... -->
  313. <ref bean="preselector"/>
  314. <!-- ...then verify or trigger prerequisite URIs fetched, allow crawling... -->
  315. <ref bean="preconditions"/>
  316. <!-- ...fetch if DNS URI... -->
  317. <ref bean="fetchDns"/>
  318. <!-- <ref bean="fetchWhois"/> -->
  319. <!-- ...fetch if HTTP URI... -->
  320. <ref bean="fetchHttp"/>
  321. <!-- ...extract outlinks from HTTP headers... -->
  322. <ref bean="extractorHttp"/>
  323. <!-- ...extract outlinks from HTML content... -->
  324. <ref bean="extractorHtml"/>
  325. <!-- ...extract outlinks from CSS content... -->
  326. <ref bean="extractorCss"/>
  327. <!-- ...extract outlinks from Javascript content... -->
  328. <ref bean="extractorJs"/>
  329. <!-- ...extract outlinks from Flash content... -->
  330. <ref bean="extractorSwf"/>
  331. </list>
  332. </property>
  333. </bean>
  334.  
  335. <!-- DISPOSITION CHAIN -->
  336. <!-- first, processors are declared as top-level named beans -->
  337. <bean id="warcWriter" class="org.archive.modules.writer.WARCWriterProcessor">
  338. <!-- <property name="compress" value="true" /> -->
  339. <!-- <property name="prefix" value="IAH" /> -->
  340. <!-- <property name="suffix" value="${HOSTNAME}" /> -->
  341. <!-- <property name="maxFileSizeBytes" value="1000000000" /> -->
  342. <!-- <property name="poolMaxActive" value="1" /> -->
  343. <!-- <property name="MaxWaitForIdleMs" value="500" /> -->
  344. <!-- <property name="skipIdenticalDigests" value="false" /> -->
  345. <!-- <property name="maxTotalBytesToWrite" value="0" /> -->
  346. <!-- <property name="directory" value="${launchId}" /> -->
  347. <!-- <property name="storePaths">
  348. <list>
  349. <value>warcs</value>
  350. </list>
  351. </property> -->
  352. <!-- <property name="template" value="${prefix}-${timestamp17}-${serialno}-${heritrix.pid}~${heritrix.hostname}~${heritrix.port}" /> -->
  353. <!-- <property name="writeRequests" value="true" /> -->
  354. <!-- <property name="writeMetadata" value="true" /> -->
  355. <!-- <property name="writeRevisitForIdenticalDigests" value="true" /> -->
  356. <!-- <property name="writeRevisitForNotModified" value="true" /> -->
  357. <!-- <property name="startNewFilesOnCheckpoint" value="true" /> -->
  358. </bean>
  359. <bean id="candidates" class="org.archive.crawler.postprocessor.CandidatesProcessor">
  360. <!-- <property name="seedsRedirectNewSeeds" value="true" /> -->
  361. <!-- <property name="processErrorOutlinks" value="false" /> -->
  362. </bean>
  363. <bean id="disposition" class="org.archive.crawler.postprocessor.DispositionProcessor">
  364. <!-- <property name="delayFactor" value="5.0" /> -->
  365. <!-- <property name="minDelayMs" value="3000" /> -->
  366. <!-- <property name="respectCrawlDelayUpToSeconds" value="300" /> -->
  367. <!-- <property name="maxDelayMs" value="30000" /> -->
  368. <!-- <property name="maxPerHostBandwidthUsageKbSec" value="0" /> -->
  369. </bean>
  370. <!-- <bean id="rescheduler" class="org.archive.crawler.postprocessor.ReschedulingProcessor">
  371. <property name="rescheduleDelaySeconds" value="-1" />
  372. </bean> -->
  373. <!-- now, processors are assembled into ordered DispositionChain bean -->
  374. <bean id="dispositionProcessors" class="org.archive.modules.DispositionChain">
  375. <property name="processors">
  376. <list>
  377. <!-- write to aggregate archival files... -->
  378. <ref bean="warcWriter"/>
  379. <!-- ...send each outlink candidate URI to CandidateChain,
  380. and enqueue those ACCEPTed to the frontier... -->
  381. <ref bean="candidates"/>
  382. <!-- ...then update stats, shared-structures, frontier decisions -->
  383. <ref bean="disposition"/>
  384. <!-- <ref bean="rescheduler" /> -->
  385. </list>
  386. </property>
  387. </bean>
  388.  
  389. <!-- CRAWLCONTROLLER: Control interface, unifying context -->
  390. <bean id="crawlController"
  391. class="org.archive.crawler.framework.CrawlController">
  392. <!-- <property name="maxToeThreads" value="25" /> -->
  393. <!-- <property name="pauseAtStart" value="true" /> -->
  394. <!-- <property name="runWhileEmpty" value="false" /> -->
  395. <!-- <property name="recorderInBufferBytes" value="524288" /> -->
  396. <!-- <property name="recorderOutBufferBytes" value="16384" /> -->
  397. <!-- <property name="scratchDir" value="scratch" /> -->
  398. </bean>
  399.  
  400. <!-- FRONTIER: Record of all URIs discovered and queued-for-collection -->
  401. <bean id="frontier"
  402. class="org.archive.crawler.frontier.BdbFrontier">
  403. <!-- <property name="queueTotalBudget" value="-1" /> -->
  404. <!-- <property name="balanceReplenishAmount" value="3000" /> -->
  405. <!-- <property name="errorPenaltyAmount" value="100" /> -->
  406. <!-- <property name="precedenceFloor" value="255" /> -->
  407. <!-- <property name="queuePrecedencePolicy">
  408. <bean class="org.archive.crawler.frontier.precedence.BaseQueuePrecedencePolicy" />
  409. </property> -->
  410. <!-- <property name="snoozeLongMs" value="300000" /> -->
  411. <!-- <property name="retryDelaySeconds" value="900" /> -->
  412. <!-- <property name="maxRetries" value="30" /> -->
  413. <!-- <property name="recoveryLogEnabled" value="true" /> -->
  414. <!-- <property name="maxOutlinks" value="6000" /> -->
  415. <!-- <property name="extractIndependently" value="false" /> -->
  416. <!-- <property name="outbound">
  417. <bean class="java.util.concurrent.ArrayBlockingQueue">
  418. <constructor-arg value="200"/>
  419. <constructor-arg value="true"/>
  420. </bean>
  421. </property> -->
  422. <!-- <property name="inbound">
  423. <bean class="java.util.concurrent.ArrayBlockingQueue">
  424. <constructor-arg value="40000"/>
  425. <constructor-arg value="true"/>
  426. </bean>
  427. </property> -->
  428. <!-- <property name="dumpPendingAtClose" value="false" /> -->
  429. </bean>
  430.  
  431. <!-- URI UNIQ FILTER: Used by frontier to remember already-included URIs -->
  432. <bean id="uriUniqFilter"
  433. class="org.archive.crawler.util.BdbUriUniqFilter">
  434. </bean>
  435.  
  436. <!--
  437. EXAMPLE SETTINGS OVERLAY SHEETS
  438. Sheets allow some settings to vary by context - usually by URI context,
  439. so that different sites or sections of sites can be treated differently.
  440. Here are some example Sheets for common purposes. The SheetOverlaysManager
  441. (below) automatically collects all Sheet instances declared among the
  442. original beans, but others can be added during the crawl via the scripting
  443. interface.
  444. -->
  445.  
  446. <!-- forceRetire: any URI to which this sheet's settings are applied
  447. will force its containing queue to 'retired' status. -->
  448. <bean id='forceRetire' class='org.archive.spring.Sheet'>
  449. <property name='map'>
  450. <map>
  451. <entry key='disposition.forceRetire' value='true'/>
  452. </map>
  453. </property>
  454. </bean>
  455.  
  456. <!-- smallBudget: any URI to which this sheet's settings are applied
  457. will give its containing queue small values for balanceReplenishAmount
  458. (causing it to have shorter 'active' periods while other queues are
  459. waiting) and queueTotalBudget (causing the queue to enter 'retired'
  460. status once that expenditure is reached by URI attempts and errors) -->
  461. <bean id='smallBudget' class='org.archive.spring.Sheet'>
  462. <property name='map'>
  463. <map>
  464. <entry key='frontier.balanceReplenishAmount' value='20'/>
  465. <entry key='frontier.queueTotalBudget' value='100'/>
  466. </map>
  467. </property>
  468. </bean>
  469.  
  470. <!-- veryPolite: any URI to which this sheet's settings are applied
  471. will cause its queue to take extra-long politeness snoozes -->
  472. <bean id='veryPolite' class='org.archive.spring.Sheet'>
  473. <property name='map'>
  474. <map>
  475. <entry key='disposition.delayFactor' value='10'/>
  476. <entry key='disposition.minDelayMs' value='10000'/>
  477. <entry key='disposition.maxDelayMs' value='1000000'/>
  478. <entry key='disposition.respectCrawlDelayUpToSeconds' value='3600'/>
  479. </map>
  480. </property>
  481. </bean>
  482.  
  483. <!-- highPrecedence: any URI to which this sheet's settings are applied
  484. will give its containing queue a slightly-higher than default
  485. queue precedence value. That queue will then be preferred over
  486. other queues for active crawling, never waiting behind lower-
  487. precedence queues. -->
  488. <bean id='highPrecedence' class='org.archive.spring.Sheet'>
  489. <property name='map'>
  490. <map>
  491. <entry key='frontier.balanceReplenishAmount' value='20'/>
  492. <entry key='frontier.queueTotalBudget' value='100'/>
  493. </map>
  494. </property>
  495. </bean>
  496.  
  497. <!--
  498. EXAMPLE SETTINGS OVERLAY SHEET-ASSOCIATION
  499. A SheetAssociation says certain URIs should have certain overlay Sheets
  500. applied. This example applies two sheets to URIs matching two SURT-prefixes.
  501. New associations may also be added mid-crawl using the scripting facility.
  502. -->
  503.  
  504. <!--
  505. <bean class='org.archive.crawler.spring.SurtPrefixesSheetAssociation'>
  506. <property name='surtPrefixes'>
  507. <list>
  508. <value>http://(org,example,</value>
  509. <value>http://(com,example,www,)/</value>
  510. </list>
  511. </property>
  512. <property name='targetSheetNames'>
  513. <list>
  514. <value>veryPolite</value>
  515. <value>smallBudget</value>
  516. </list>
  517. </property>
  518. </bean>
  519. -->
  520.  
  521. <!--
  522. OPTIONAL BUT RECOMMENDED BEANS
  523. -->
  524.  
  525. <!-- ACTIONDIRECTORY: disk directory for mid-crawl operations
  526. Running job will watch directory for new files with URIs,
  527. scripts, and other data to be processed during a crawl. -->
  528. <bean id="actionDirectory" class="org.archive.crawler.framework.ActionDirectory">
  529. <!-- <property name="actionDir" value="action" /> -->
  530. <!-- <property name="doneDir" value="${launchId}/actions-done" /> -->
  531. <!-- <property name="initialDelaySeconds" value="10" /> -->
  532. <!-- <property name="delaySeconds" value="30" /> -->
  533. </bean>
  534.  
  535. <!-- CRAWLLIMITENFORCER: stops crawl when it reaches configured limits -->
  536. <bean id="crawlLimiter" class="org.archive.crawler.framework.CrawlLimitEnforcer">
  537. <!-- <property name="maxBytesDownload" value="0" /> -->
  538. <!-- <property name="maxDocumentsDownload" value="0" /> -->
  539. <!-- <property name="maxTimeSeconds" value="0" /> -->
  540. </bean>
  541.  
  542. <!-- CHECKPOINTSERVICE: checkpointing assistance -->
  543. <bean id="checkpointService"
  544. class="org.archive.crawler.framework.CheckpointService">
  545. <!-- <property name="checkpointIntervalMinutes" value="-1"/> -->
  546. <!-- <property name="checkpointsDir" value="checkpoints"/> -->
  547. <!-- <property name="forgetAllButLatest" value="true"/> -->
  548. </bean>
  549.  
  550. <!--
  551. OPTIONAL BEANS
  552. Uncomment and expand as needed, or if non-default alternate
  553. implementations are preferred.
  554. -->
  555.  
  556. <!-- CANONICALIZATION POLICY -->
  557. <!--
  558. <bean id="canonicalizationPolicy"
  559. class="org.archive.modules.canonicalize.RulesCanonicalizationPolicy">
  560. <property name="rules">
  561. <list>
  562. <bean class="org.archive.modules.canonicalize.LowercaseRule" />
  563. <bean class="org.archive.modules.canonicalize.StripUserinfoRule" />
  564. <bean class="org.archive.modules.canonicalize.StripWWWNRule" />
  565. <bean class="org.archive.modules.canonicalize.StripSessionIDs" />
  566. <bean class="org.archive.modules.canonicalize.StripSessionCFIDs" />
  567. <bean class="org.archive.modules.canonicalize.FixupQueryString" />
  568. </list>
  569. </property>
  570. </bean>
  571. -->
  572.  
  573.  
  574. <!-- QUEUE ASSIGNMENT POLICY -->
  575. <!--
  576. <bean id="queueAssignmentPolicy"
  577. class="org.archive.crawler.frontier.SurtAuthorityQueueAssignmentPolicy">
  578. <property name="forceQueueAssignment" value="" />
  579. <property name="deferToPrevious" value="true" />
  580. <property name="parallelQueues" value="1" />
  581. </bean>
  582. -->
  583.  
  584. <!-- URI PRECEDENCE POLICY -->
  585. <!--
  586. <bean id="uriPrecedencePolicy"
  587. class="org.archive.crawler.frontier.precedence.CostUriPrecedencePolicy">
  588. </bean>
  589. -->
  590.  
  591. <!-- COST ASSIGNMENT POLICY -->
  592. <!--
  593. <bean id="costAssignmentPolicy"
  594. class="org.archive.crawler.frontier.UnitCostAssignmentPolicy">
  595. </bean>
  596. -->
  597.  
  598. <!-- CREDENTIAL STORE: HTTP authentication or FORM POST credentials -->
  599. <!--
  600. <bean id="credentialStore"
  601. class="org.archive.modules.credential.CredentialStore">
  602. </bean>
  603. -->
  604.  
  605. <!-- DISK SPACE MONITOR:
  606. Pauses the crawl if disk space at monitored paths falls below minimum threshold -->
  607. <!--
  608. <bean id="diskSpaceMonitor" class="org.archive.crawler.monitor.DiskSpaceMonitor">
  609. <property name="pauseThresholdMiB" value="500" />
  610. <property name="monitorConfigPaths" value="true" />
  611. <property name="monitorPaths">
  612. <list>
  613. <value>PATH</value>
  614. </list>
  615. </property>
  616. </bean>
  617. -->
  618.  
  619. <!--
  620. REQUIRED STANDARD BEANS
  621. It will be very rare to replace or reconfigure the following beans.
  622. -->
  623.  
  624. <!-- STATISTICSTRACKER: standard stats/reporting collector -->
  625. <bean id="statisticsTracker"
  626. class="org.archive.crawler.reporting.StatisticsTracker" autowire="byName">
  627. <!-- <property name="reports">
  628. <list>
  629. <bean id="crawlSummaryReport" class="org.archive.crawler.reporting.CrawlSummaryReport" />
  630. <bean id="seedsReport" class="org.archive.crawler.reporting.SeedsReport" />
  631. <bean id="hostsReport" class="org.archive.crawler.reporting.HostsReport" />
  632. <bean id="sourceTagsReport" class="org.archive.crawler.reporting.SourceTagsReport" />
  633. <bean id="mimetypesReport" class="org.archive.crawler.reporting.MimetypesReport" />
  634. <bean id="responseCodeReport" class="org.archive.crawler.reporting.ResponseCodeReport" />
  635. <bean id="processorsReport" class="org.archive.crawler.reporting.ProcessorsReport" />
  636. <bean id="frontierSummaryReport" class="org.archive.crawler.reporting.FrontierSummaryReport" />
  637. <bean id="frontierNonemptyReport" class="org.archive.crawler.reporting.FrontierNonemptyReport" />
  638. <bean id="toeThreadsReport" class="org.archive.crawler.reporting.ToeThreadsReport" />
  639. </list>
  640. </property> -->
  641. <!-- <property name="reportsDir" value="${launchId}/reports" /> -->
  642. <!-- <property name="liveHostReportSize" value="20" /> -->
  643. <!-- <property name="intervalSeconds" value="20" /> -->
  644. <!-- <property name="keepSnapshotsCount" value="5" /> -->
  645. <!-- <property name="liveHostReportSize" value="20" /> -->
  646. </bean>
  647.  
  648. <!-- CRAWLERLOGGERMODULE: shared logging facility -->
  649. <bean id="loggerModule"
  650. class="org.archive.crawler.reporting.CrawlerLoggerModule">
  651. <!-- <property name="path" value="${launchId}/logs" /> -->
  652. <!-- <property name="crawlLogPath" value="crawl.log" /> -->
  653. <!-- <property name="alertsLogPath" value="alerts.log" /> -->
  654. <!-- <property name="progressLogPath" value="progress-statistics.log" /> -->
  655. <!-- <property name="uriErrorsLogPath" value="uri-errors.log" /> -->
  656. <!-- <property name="runtimeErrorsLogPath" value="runtime-errors.log" /> -->
  657. <!-- <property name="nonfatalErrorsLogPath" value="nonfatal-errors.log" /> -->
  658. <!-- <property name="logExtraInfo" value="false" /> -->
  659. </bean>
  660.  
  661. <!-- SHEETOVERLAYMANAGER: manager of sheets of contextual overlays
  662. Autowired to include any SheetForSurtPrefix or
  663. SheetForDecideRuled beans -->
  664. <bean id="sheetOverlaysManager" autowire="byType"
  665. class="org.archive.crawler.spring.SheetOverlaysManager">
  666. </bean>
  667.  
  668. <!-- BDBMODULE: shared BDB-JE disk persistence manager -->
  669. <bean id="bdb"
  670. class="org.archive.bdb.BdbModule">
  671. <!-- <property name="dir" value="state" /> -->
  672. <!-- if neither cachePercent or cacheSize are specified (the default), bdb
  673. uses its own default of 60% -->
  674. <!-- <property name="cachePercent" value="0" /> -->
  675. <!-- <property name="cacheSize" value="0" /> -->
  676. <!-- <property name="useSharedCache" value="true" /> -->
  677. <!-- <property name="expectedConcurrency" value="25" /> -->
  678. </bean>
  679.  
  680. <!-- BDBCOOKIESTORAGE: disk-based cookie storage for FetchHTTP -->
  681. <bean id="cookieStorage"
  682. class="org.archive.modules.fetcher.BdbCookieStorage">
  683. <!-- <property name="cookiesLoadFile"><null/></property> -->
  684. <!-- <property name="cookiesSaveFile"><null/></property> -->
  685. <!-- <property name="bdb">
  686. <ref bean="bdb"/>
  687. </property> -->
  688. </bean>
  689.  
  690. <!-- SERVERCACHE: shared cache of server/host info -->
  691. <bean id="serverCache"
  692. class="org.archive.modules.net.BdbServerCache">
  693. <!-- <property name="bdb">
  694. <ref bean="bdb"/>
  695. </property> -->
  696. </bean>
  697.  
  698. <!-- CONFIG PATH CONFIGURER: required helper making crawl paths relative
  699. to crawler-beans.cxml file, and tracking crawl files for web UI -->
  700. <bean id="configPathConfigurer"
  701. class="org.archive.spring.ConfigPathConfigurer">
  702. </bean>
  703.  
  704. </beans>
Advertisement
Add Comment
Please, Sign In to add comment