Examples of DereferencingTask


Examples of de.fuberlin.wiwiss.ng4j.semwebclient.DereferencingTask

  private synchronized void tryAssignTask() {
    if (this.tasks.isEmpty())
      return;
     
    DereferencingTask task = (DereferencingTask) this.tasks.getFirst();
   
    Iterator<DereferencerThread> it = this.threads.iterator();
    while (it.hasNext()) {
      DereferencerThread thread = it.next();
      if (thread.startDereferencingIfAvailable(task)) {
        this.tasks.removeFirst();
        this.log.debug("Dequeue: <" + task.getURI() + ">@" + task.getStep() +
            " (n = " + this.tasks.size() + ")");
        break;
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.