Package org.apache.nutch.api.JobManager

Examples of org.apache.nutch.api.JobManager.JobType


   */
  @Put("json")
  public Object create(Map<String,Object> args) throws Exception {
    String cid = (String)args.get(Params.CRAWL_ID);
    String typeString = (String)args.get(Params.JOB_TYPE);
    JobType type = JobType.valueOf(typeString.toUpperCase());
    String confId = (String)args.get(Params.CONF_ID);
    Map<String,Object> cmdArgs = (Map<String,Object>)args.get(Params.ARGS);
    String jobId = NutchApp.jobMgr.create(cid, type, confId, cmdArgs);
    return jobId;
  }
View Full Code Here


  @Put("json")
  @SuppressWarnings("unchecked")
  public Object create(Map<String,Object> args) throws Exception {
    String cid = (String)args.get(Params.CRAWL_ID);
    String typeString = (String)args.get(Params.JOB_TYPE);
    JobType type = JobType.valueOf(typeString.toUpperCase());
    String confId = (String)args.get(Params.CONF_ID);
    Object map = args.get(Params.ARGS);
    Map<String,Object> cmdArgs = null;
    if(map instanceof Map<?,?>)
      cmdArgs = (Map<String,Object>)map;
View Full Code Here

TOP

Related Classes of org.apache.nutch.api.JobManager.JobType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.