Examples of Task


Examples of org.nasutekds.server.backends.task.Task

    }

    if (Thread.currentThread() instanceof DirectoryThread)
    {
      DirectoryThread thread = (DirectoryThread) Thread.currentThread();
      Task task = thread.getAssociatedTask();
      if (task != null)
      {
        task.addLogMessage(message);
      }
    }
  }
View Full Code Here

Examples of org.netbeans.spi.tasklist.Task

      for (JSLintIssue issue : errors) {
    if (null != currentDocument) {
        JSLintIssueAnnotation.createAnnotation(dObj, cLine, issue.getReason(), issue.getLine(), issue.getCharacter(), issue.getLength());
    }
    // Create new Task
    Task task = Task.create(file, GROUP_NAME, issue.getReason(), issue.getLine());
    tasks.add(task);
      }
  } catch (Exception e) {
      Logger.getLogger(getClass().getName()).log(Level.WARNING, null, e);
  }
View Full Code Here

Examples of org.nightlabs.jfire.timer.Task

  public void processRecurringOfferTimed(TaskID taskID)
  throws Exception
  {
    PersistenceManager pm = createPersistenceManager();
    try {
      Task task = (Task) pm.getObjectById(taskID);
      RecurringOffer recurringOffer =  (RecurringOffer) task.getParam();
      logger.info("Have recurringOffer " + JDOHelper.getObjectId(recurringOffer));
      // Create the recurred Offer
      RecurringTrader recurringTrader = RecurringTrader.getRecurringTrader(pm);
      recurringTrader.processRecurringOffer(recurringOffer);
    } finally {
View Full Code Here

Examples of org.nxplanner.domain.Task

                    entry.setPerson2Id(person2Id);
                    entry.setReportDate(reportDate);
                }
            }

            Task task = (Task)session.load(Task.class, new Integer(form.getOid()));
            //log.info("task estimate: "+task.getEstimatedHours()+", actual = "+hoursWorked);
            if (hoursWorked > task.getEstimatedHours()) {
                request.setAttribute("edit/task", task);
                request.setAttribute("actualHours", new Double(hoursWorked));
                request.setAttribute("estimatedHours", new Double(task.getEstimatedHours()));
                return actionMapping.findForward("edit/task/estimate");
            }

            if (rowDeleted) {
                form.reset(actionMapping, request);
View Full Code Here

Examples of org.openengsb.core.workflow.api.model.Task

        this.bundleContext = bundleContext;
    }

    @Override
    public void createNewTask(ProcessBag bag) throws PersistenceException {
        Task task = new Task(bag);
        persistence.create(task);
        LOGGER.info("New human task with id {} created", task.getTaskId());
    }
View Full Code Here

Examples of org.openide.util.RequestProcessor.Task

    private void testReadPagePrefix(String encoding, int iterations) throws Exception {
        this.encoding = encoding;
        pis = new PipedInputStream();
        pos = new PipedOutputStream();
        pos.connect(pis);
        Task t = RequestProcessor.getDefault().post(this);
        Random r = new Random();
        int all = 0;
        for (int i = 0; i < iterations; i++) {
            int size = r.nextInt(100);
            String text = "";
            for (int j = 0; j < size; j++) {
                text = text.concat(hallo);
            }
            all += size * 10;
            pos.write(text.getBytes(encoding));
        }
        pos.close();
        t.waitFinished(10000);
        assertNotNull(result);
        int expected = Math.min(all, ReporterUtils.MAX_PREFIX_LEN);
        assertEquals(expected, result.length());
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.task.common.Task

   * @param requiredTaskType
   *            The required type of the input task.
   * @return The matching task.
   */
  public Task retrieveTask(String taskId, String pipeName, Class<? extends Task> requiredTaskType) {
    Task task;
   
    if (!namedTasks.containsKey(pipeName)) {
      throw new OsmosisRuntimeException(
          "No pipe named " + pipeName + " is available as input for task " + taskId + ".");
    }
View Full Code Here

Examples of org.optaplanner.examples.cheaptime.domain.Task

                cheapTimeSolution.getGlobalPeriodRangeTo());
        List<TaskAssignment> taskAssignmentList = cheapTimeSolution.getTaskAssignmentList();
        int pillarCapacity = (taskAssignmentList.size() * 2 / cheapTimeSolution.getMachineList().size()) + 1;
        for (TaskAssignment taskAssignment : taskAssignmentList) {
            Machine machine = taskAssignment.getMachine();
            Task task = taskAssignment.getTask();
            Integer startPeriod = taskAssignment.getStartPeriod();
            if (startPeriod != null) {
                if (startPeriod < task.getStartPeriodRangeTo() - 1) {
                    List<TaskAssignment> pillar = positivePillarMap.get(machine);
                    if (pillar == null) {
                        pillar = new ArrayList<TaskAssignment>(pillarCapacity);
                        positivePillarMap.put(machine, pillar);
                    }
                    pillar.add(taskAssignment);
                }
                if (startPeriod > task.getStartPeriodRangeFrom()) {
                    List<TaskAssignment> pillar = negativePillarMap.get(machine);
                    if (pillar == null) {
                        pillar = new ArrayList<TaskAssignment>(pillarCapacity);
                        negativePillarMap.put(machine, pillar);
                    }
View Full Code Here

Examples of org.prevayler.demos.jxpath.model.Task

      String projectId)
      throws Exception {
    System.out.println(
        "Adding task '" + id + "' to project '" + projectId + "'...");

    Task t = new Task();
    t.setId(Integer.parseInt(id));
    t.setName(name);
    t.setStart(SimpleDateFormat.getInstance().parse(start));
    t.setEnd(SimpleDateFormat.getInstance().parse(end));
    System.out.println("Start: " + t.getStart());
    System.out.println("End:   " + t.getEnd());

    AddTask cmd = new AddTask();
    cmd.setTask(t);
    cmd.setProjectId(Integer.parseInt(projectId));
    prevayler.execute(cmd);
View Full Code Here

Examples of org.sonar.api.task.Task

    TaskDefinition def = getComponentByType(Tasks.class).definition(taskKey);
    if (def == null) {
      throw MessageException.of("Task " + taskKey + " does not exist");
    }
    Task task = getComponentByType(def.taskClass());
    if (task != null) {
      task.execute();
    } else {
      throw new IllegalStateException("Task " + taskKey + " is badly defined");
    }
  }
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.