Examples of Task


Examples of kilim.Task

  /**
   * @param job
   */
  public static void run_async(final EAsync job, final EDriverTask dt) {
    run_async(new Task() {
      @Override
      public void execute() throws Pausable, Exception {
        job.async();
        dt.async_done(job);
      }
View Full Code Here

Examples of mapwriter.tasks.Task

  // Pop a Task entry from the task queue and check if the task's thread has finished.
  // If it has completed then call onComplete for the task.
  // If it has not completed then push the task back on the queue.
  public boolean processTaskQueue() {
    boolean processed = false;
    Task task = this.taskQueue.poll();
    if (task != null) {
      if (task.isDone()) {
        task.printException();
        task.onComplete();
        processed = true;
      } else {
        // put entry back on top of queue
        this.taskQueue.push(task);
      }
View Full Code Here

Examples of me.victorhernandez.hellospring.domain.Task

 
  @Transactional
  public void assignTaskToUser(long userId, long taskId) {
    //1.0 obtener los objetos a relacionar.
    Usuario user = userDao.get(userId);
    Task task = taskDao.get(taskId);
    //2. relacionarlos
    user.getTasks().add(task);
    task.getAsignedUser().add(user);
    //3. será que necesito salvar
    userDao.save(user);
    taskDao.save(task);
  }
View Full Code Here

Examples of models.Task

public class IndexTest {

  @Test
    public void indexTemplate() {
    List<Task> items = new ArrayList<Task>();
    Task dummyTask = new Task();
    dummyTask.id = 0L;
    items.add(dummyTask);
   
        Content html = views.html.index.render(items);
        assertThat(contentType(html)).isEqualTo("text/html");
View Full Code Here

Examples of net.bnubot.util.task.Task

  public static void flush() throws Exception {
    int num = queue.size();
    if(num <= 0)
      return;

    Task t = TaskManager.createTask("Download", num, "files");
    for(FileDownload fd : queue) {
      downloadURLNow(fd.url, fd.to, fd.sha1, fd.force);
      t.advanceProgress();
    }
    t.complete();
    queue.clear();
  }
View Full Code Here

Examples of net.lr.tasklist.model.Task

        }
    }

    private void showTask(PrintWriter writer, String taskId) {
        SimpleDateFormat sdf = new SimpleDateFormat();
        Task task = taskService.getTask(new Integer(taskId));
        if (task != null) {
            writer.println("<h1>Task " + task.getTitle() + " </h1>");
            if (task.getDueDate() != null) {
                writer.println("Due date: " + sdf.format(task.getDueDate()) + "<br/>");
            }
            writer.println(task.getDescription());
        } else {
            writer.println("Task with id " + taskId + " not found");
        }

    }
View Full Code Here

Examples of net.myexperiments.gos.schedule.Task

  public Monster(World map, VCGame vcgtge, String name, int number) {
    super();
    world = map;
    this.name = name;
    this.number = number;
    task = new Task(this);
    task.TurnBasedSleep(world.CurrentTurn + 1, STATES.BORN);
    Characterlog = GOSSystem.getLogger();
    world.GOSPS.registerUser(name, this);
    // TODO Auto-generated constructor stub
  }
View Full Code Here

Examples of net.sf.apptools.task.Task

        platform.handleError(e.toString(),e);
        ins[i] = null;
      }
    }

    final Task targetIOtask =  new TargetIOTask(project,platform,ins,tif);
    platform.runTask(targetIOtask);
  }
View Full Code Here

Examples of net.sf.mpxj.Task

        List<DependencyDTO> dependencies = new ArrayList<DependencyDTO>();

        List<Relation> successors;

        Task task;

        DependencyDTO dependencyDTO;

        for (Map.Entry<Task, IHasTaskAssociated> mapEntry : mapTask.entrySet()) {

            task = mapEntry.getKey();

            successors = task.getSuccessors();

            if (successors != null) {

                for (Relation successor : successors) {
View Full Code Here

Examples of net.sf.mzmine.taskcontrol.Task

    PeakList peakLists[] = parameters.getParameter(
        FragmentSearchParameters.peakLists).getValue();

    for (PeakList peakList : peakLists) {
      Task newTask = new FragmentSearchTask(parameters, peakList);
      tasks.add(newTask);
    }
    return ExitCode.OK;
  }
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.