org.apache.nutch.util
Class NutchConfiguration

java.lang.Object
  extended by org.apache.nutch.util.NutchConfiguration

public class NutchConfiguration
extends Object

Utility to create Hadoop Configurations that include Nutch-specific resources.


Method Summary
static Configuration create()
          Create a Configuration for Nutch.
static Configuration createCrawlConfiguration()
          Create a {@link Configuration for Nutch invoked with the command line crawl command, i.e.
static Configuration get(javax.servlet.ServletContext application)
          Create a Configuration for Nutch front-end.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Configuration create()
Create a Configuration for Nutch.


createCrawlConfiguration

public static Configuration createCrawlConfiguration()
Create a {@link Configuration for Nutch invoked with the command line crawl command, i.e. bin/nutch crawl ...


get

public static Configuration get(javax.servlet.ServletContext application)
Create a Configuration for Nutch front-end. If a Configuration is found in the ServletContext it is simply returned, otherwise, a new Configuration is created using the create() method, and then all the init parameters found in the ServletContext are added to the Configuration (the created Configuration is then saved into the ServletContext).

Parameters:
application - is the ServletContext whose init parameters must override those of Nutch.


Copyright © 2006 The Apache Software Foundation