Package org.apache.nutch.service.impl
Class ConfManagerImpl
- java.lang.Object
-
- org.apache.nutch.service.impl.ConfManagerImpl
-
- All Implemented Interfaces:
ConfManager
public class ConfManagerImpl extends Object implements ConfManager
-
-
Constructor Summary
Constructors Constructor Description ConfManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
create(NutchConfig nutchConfig)
Created a new configuration based on the values provided.void
delete(String confId)
Configuration
get(String confId)
Returns the configuration associatedConfManagerImpl with the given confIdMap<String,String>
getAsMap(String confId)
Set<String>
list()
void
setProperty(String confId, String propName, String propValue)
Sets the given property in the configuration associated with the confId
-
-
-
Method Detail
-
get
public Configuration get(String confId)
Returns the configuration associatedConfManagerImpl with the given confId- Specified by:
get
in interfaceConfManager
-
getAsMap
public Map<String,String> getAsMap(String confId)
- Specified by:
getAsMap
in interfaceConfManager
-
setProperty
public void setProperty(String confId, String propName, String propValue)
Sets the given property in the configuration associated with the confId- Specified by:
setProperty
in interfaceConfManager
-
list
public Set<String> list()
- Specified by:
list
in interfaceConfManager
-
create
public String create(NutchConfig nutchConfig)
Created a new configuration based on the values provided.- Specified by:
create
in interfaceConfManager
- Parameters:
nutchConfig
- crawler configuration- Returns:
- String - confId
-
delete
public void delete(String confId)
- Specified by:
delete
in interfaceConfManager
-
-