Package org.apache.nutch.service.impl
Class JobWorker
- java.lang.Object
-
- org.apache.nutch.service.impl.JobWorker
-
-
Constructor Summary
Constructors Constructor Description JobWorker(JobConfig jobConfig, Configuration conf, NutchTool tool)
To initialize JobWorker thread with the Job Configurations provided by user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobInfo
getInfo()
boolean
killJob()
void
run()
void
setInfo(JobInfo jobInfo)
boolean
stopJob()
To stop the executing job
-
-
-
Constructor Detail
-
JobWorker
public JobWorker(JobConfig jobConfig, Configuration conf, NutchTool tool)
To initialize JobWorker thread with the Job Configurations provided by user.- Parameters:
jobConfig
- job-specificJobConfig
conf
- a populatedConfiguration
tool
- {!NutchTool
to run return JobWorker
-
-