Package org.apache.nutch.api

Examples of org.apache.nutch.api.JobStatus


    protected void afterExecute(Runnable r, Throwable t) {
      super.afterExecute(r, t);
      synchronized(jobRunning) {
        jobRunning.remove(((JobWorker)r).jobStatus);
      }
      JobStatus status = ((JobWorker)r).jobStatus;
      synchronized(jobHistory) {
        if (!jobHistory.offer(status)) {
          jobHistory.poll();
          jobHistory.add(status);
        }
View Full Code Here


      Class<? extends NutchTool> clz = typeToClass.get(type);
      if (clz == null) {
        clz = (Class<? extends NutchTool>)Class.forName((String)args.get(Nutch.ARG_CLASS));
      }
      tool = ReflectionUtils.newInstance(clz, conf);
      jobStatus = new JobStatus(id, type, confId, args, State.IDLE, "idle");
      jobStatus.tool = tool;
    }
View Full Code Here

    protected void afterExecute(Runnable r, Throwable t) {
      super.afterExecute(r, t);
      synchronized(jobRunning) {
        jobRunning.remove(((JobWorker)r).jobStatus);
      }
      JobStatus status = ((JobWorker)r).jobStatus;
      synchronized(jobHistory) {
        if (!jobHistory.offer(status)) {
          jobHistory.poll();
          jobHistory.add(status);
        }
View Full Code Here

        if(c instanceof Class) {
          clz = (Class<? extends NutchTool>) c;
        }
      }
      tool = ReflectionUtils.newInstance(clz, conf);
      jobStatus = new JobStatus(id, type, confId, args, State.IDLE, "idle");
      jobStatus.tool = tool;
    }
View Full Code Here

TOP

Related Classes of org.apache.nutch.api.JobStatus

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.