org.apache.nutch.api.impl
Class RAMJobManager

java.lang.Object
  extended by org.apache.nutch.api.impl.RAMJobManager
All Implemented Interfaces:
JobManager

public class RAMJobManager
extends Object
implements JobManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.nutch.api.JobManager
JobManager.JobType
 
Constructor Summary
RAMJobManager()
           
 
Method Summary
 boolean abort(String crawlId, String id)
           
 String create(String crawlId, JobManager.JobType type, String confId, Map<String,Object> args)
           
 JobStatus get(String crawlId, String jobId)
           
 List<JobStatus> list(String crawlId, JobStatus.State state)
           
 boolean stop(String crawlId, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAMJobManager

public RAMJobManager()
Method Detail

list

public List<JobStatus> list(String crawlId,
                            JobStatus.State state)
                     throws Exception
Specified by:
list in interface JobManager
Throws:
Exception

get

public JobStatus get(String crawlId,
                     String jobId)
              throws Exception
Specified by:
get in interface JobManager
Throws:
Exception

create

public String create(String crawlId,
                     JobManager.JobType type,
                     String confId,
                     Map<String,Object> args)
              throws Exception
Specified by:
create in interface JobManager
Throws:
Exception

abort

public boolean abort(String crawlId,
                     String id)
              throws Exception
Specified by:
abort in interface JobManager
Throws:
Exception

stop

public boolean stop(String crawlId,
                    String id)
             throws Exception
Specified by:
stop in interface JobManager
Throws:
Exception


Copyright © 2012 The Apache Software Foundation