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 addNutchResources(Configuration conf)
          Add the standard Nutch resources to Configuration.
static Configuration create()
          Create a Configuration for Nutch.
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.


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.

addNutchResources

public static Configuration addNutchResources(Configuration conf)
Add the standard Nutch resources to Configuration.



Copyright © 2006 The Apache Software Foundation