You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Volli <il...@web.de> on 2010/08/20 18:47:44 UTC
Configuration, nutch-default.xml, property crawl.gen.delay with default
value 604800000
Hello, this is my first message to nutch mailing list. I
hope I send it to right receiver.
In nutch-1.1 I checked nutch-default.xml for new properties.
There I found "crawl.gen.delay" with default value "604800000".
Description says "This value, expressed in days ... Default
value of this is 7 days."
In "Generator.java" I see the lines:
1) "public static final String GENERATOR_DELAY =
"crawl.gen.delay";"
2) "genDelay = job.getLong(GENERATOR_DELAY, 7L) * 3600L *
24L * 1000L;"
I couldn't find any other Scripts where "crawl.gen.delay" is
used.
Im not really proficient in Java! So, what I read here is:
1) Define GENERATOR_DELAY as "604800000" (milliseconds? =>
if yes, this would be the "Default value of this is 7 days."
as mentioned above)
2) Assign value of (604800000*3600*24*1000) to genDelay as
Long. => 7464960000000000
All I want to know, because I'm really confused: Do you
think that this is an error in nutch-default.xml or must I
think further to understand the property correctly?
I don't understand value "7L" in
"job.getLong(GENERATOR_DELAY, 7L)". Maybe that's the crux.
Thanks!
Volli