Examples of waitForComplete()


Examples of org.apache.manifoldcf.authorities.system.MappingRequest.waitForComplete()

    public void run()
    {
      try
      {
        MappingRequest mappingRequest = mappingRequests.get(prerequisite);
        mappingRequest.waitForComplete();
        // Constraints are met.  Fire off the request.  User may be null if mapper failed!!
        request.setUserID(mappingRequest.getAnswerResponse());
        authRequestQueue.addRequest(request);
      }
      catch (Throwable e)
View Full Code Here

Examples of org.apache.manifoldcf.authorities.system.MappingRequest.waitForComplete()

      }
     
      // This is probably unnecessary, but we do it anyway just to adhere to the contract
      for (MappingRequest mr : mappingRequests.values())
      {
        mr.waitForComplete();
      }
     
      // Handle all exceptions thrown during mapping.  In general this just means logging them, because
      // the downstream authorities will presumably not find what they are looking for and error out that way.
      for (MappingRequest mr : mappingRequests.values())
View Full Code Here

Examples of org.apache.manifoldcf.authorities.system.MappingRequest.waitForComplete()

    public void run()
    {
      try
      {
        MappingRequest mappingRequest = requests.get(prerequisite);
        mappingRequest.waitForComplete();
        // Constraints are met.  Fire off the request.
        request.setUserID(mappingRequest.getAnswerResponse());
        mappingRequestQueue.addRequest(request);
      }
      catch (Throwable e)
View Full Code Here

Examples of org.apache.manifoldcf.authorities.system.MappingRequest.waitForComplete()

    public void run()
    {
      try
      {
        MappingRequest mappingRequest = mappingRequests.get(prerequisite);
        mappingRequest.waitForComplete();
        // Constraints are met.  Fire off the request.  User may be null if mapper failed!!
        request.setUserID(mappingRequest.getAnswerResponse());
        authRequestQueue.addRequest(request);
      }
      catch (Throwable e)
View Full Code Here

Examples of org.encog.engine.concurrency.TaskGroup.waitForComplete()

      final JobUnitWorker worker = new JobUnitWorker(context);
      EngineConcurrency.getInstance().processTask(worker, group);
    }

    group.waitForComplete();

    EngineConcurrency.getInstance().checkError();
  }

  /**
 
View Full Code Here

Examples of org.encog.engine.concurrency.TaskGroup.waitForComplete()

      for (final FlatGradientWorker worker : this.workers) {
        EngineConcurrency.getInstance().processTask(worker, group);
      }

      group.waitForComplete();
    } else {
      this.workers[0].run();
    }

    this.currentError = this.totalError / this.workers.length;
View Full Code Here

Examples of org.encog.util.concurrency.TaskGroup.waitForComplete()

     
      offspringIndex += 2;
    }

    if( this.isMultiThreaded() ) {
      group.waitForComplete();
    }

    // sort the next generation
    getPopulation().sort();
  }
View Full Code Here

Examples of org.encog.util.concurrency.TaskGroup.waitForComplete()

      final JobUnitWorker worker = new JobUnitWorker(context);
      EngineConcurrency.getInstance().processTask(worker, group);
    }

    group.waitForComplete();
    this.running = false;
    EngineConcurrency.getInstance().checkError();   
  }
 
  public void processBackground() {
View Full Code Here

Examples of org.encog.util.concurrency.TaskGroup.waitForComplete()

      for (final GradientWorker worker : this.workers) {
        EngineConcurrency.getInstance().processTask(worker, group);
      }

      group.waitForComplete();
    } else {
      this.workers[0].run();
    }

    this.currentError = this.totalError / this.workers.length;
View Full Code Here

Examples of org.encog.util.concurrency.TaskGroup.waitForComplete()

        for (final ChainRuleWorker worker : this.workers) {
          worker.setOutputNeuron(outputNeuron);
          EngineConcurrency.getInstance().processTask(worker, group);
        }

        group.waitForComplete();
      } else {
        this.workers[0].setOutputNeuron(outputNeuron);
        this.workers[0].run();
      }
     
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.