|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.util.NutchConfiguration
public class NutchConfiguration
Utility to create Hadoop Configuration
s that include Nutch-specific
resources.
Method Summary | |
---|---|
static org.apache.hadoop.conf.Configuration |
addNutchResources(org.apache.hadoop.conf.Configuration conf)
Add the standard Nutch resources to Configuration . |
static org.apache.hadoop.conf.Configuration |
create()
Create a Configuration for Nutch. |
static org.apache.hadoop.conf.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 |
---|
public static org.apache.hadoop.conf.Configuration create()
Configuration
for Nutch.
public static org.apache.hadoop.conf.Configuration get(javax.servlet.ServletContext application)
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
).
application
- is the ServletContext whose init parameters
must override those of Nutch.public static org.apache.hadoop.conf.Configuration addNutchResources(org.apache.hadoop.conf.Configuration conf)
Configuration
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |