Package org.apache.nutch.service.impl
Class JobManagerImpl
- java.lang.Object
-
- org.apache.nutch.service.impl.JobManagerImpl
-
- All Implemented Interfaces:
JobManager
public class JobManagerImpl extends Object implements JobManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.nutch.service.JobManager
JobManager.JobType
-
-
Constructor Summary
Constructors Constructor Description JobManagerImpl(JobFactory jobFactory, ConfManager configManager, NutchServerPoolExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
abort(String crawlId, String id)
JobInfo
create(JobConfig jobConfig)
Creates specified jobJobInfo
get(String crawlId, String jobId)
Collection<JobInfo>
list(String crawlId, JobInfo.State state)
boolean
stop(String crawlId, String id)
-
-
-
Constructor Detail
-
JobManagerImpl
public JobManagerImpl(JobFactory jobFactory, ConfManager configManager, NutchServerPoolExecutor executor)
-
-
Method Detail
-
create
public JobInfo create(JobConfig jobConfig)
Description copied from interface:JobManager
Creates specified job- Specified by:
create
in interfaceJobManager
- Parameters:
jobConfig
- a job-specificJobConfig
- Returns:
- JobInfo
-
list
public Collection<JobInfo> list(String crawlId, JobInfo.State state)
- Specified by:
list
in interfaceJobManager
-
get
public JobInfo get(String crawlId, String jobId)
- Specified by:
get
in interfaceJobManager
-
abort
public boolean abort(String crawlId, String id)
- Specified by:
abort
in interfaceJobManager
-
stop
public boolean stop(String crawlId, String id)
- Specified by:
stop
in interfaceJobManager
-
-