Examples of TaskDescription


Examples of gri.tasks.managers.TaskDescription

      //ParameterizedTask task = job.getParameterizedTask();

      //header:
      TaskHeaderPanel header = new TaskHeaderPanel();
      TaskDescription taskDesc = job.getTaskDescription();
      if (taskDesc != null)
        header.setTaskDescription(taskDesc);
      AppStyles.applyStyle(header, "TaskHeaderPanel");

      Dimension dim = header.getPreferredSize();
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

             .writeArray(taskList, elem);
       
        return xmlUtil.writeXML(elem);
    }
    public String getTaskDescription(String taskId) throws IOException {
        TaskDescription description = getWorkflowManager().getTaskDescription(taskId);
       
        Element elem = new Element("description");
        serializers.getTaskDescriptionSerializer()
                   .write(description, elem);
        return xmlUtil.writeXML(elem);
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

  /**
   * Adds the given task to the display widget.
   */
  public void addTask(JobManager jobManager, String taskId) {
    TaskDescription desc = jobManager.getTaskDescription(taskId);
    String displayName = desc.getName();

    TaskInfo info = new TaskInfo(jobManager, taskId, desc);
    addOption(new Option(displayName, info));
  }
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

  /**
   * Determines what group the given task should be in
   */
  protected String getGroup(TaskInfo info) {
    TaskDescription desc = info.getTaskDescription();

    String groupName = null;
    if (groupBy.equals(GROUP_BY_GROUP)) {
      if (desc instanceof ExtendedTaskDescription)
        groupName = ((ExtendedTaskDescription)desc).getGroup();
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

             .writeArray(taskList, elem);
       
        return xmlUtil.writeXML(elem);
    }
    public String getTaskDescription(String taskId) throws IOException {
        TaskDescription description = taskManager.getTaskDescription(taskId);
       
        Element elem = new Element("description");
        serializers.getTaskDescriptionSerializer()
                   .write(description, elem);
        return xmlUtil.writeXML(elem);
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

        //middle panel (title and status bar):
        pnlMain = new JPanel();
        pnlMain.setLayout(new BoxLayout(pnlMain, BoxLayout.Y_AXIS));
       
        //job name:
        TaskDescription taskDesc = jobEntry.getTaskDescription();
        String jobName = taskDesc == null ?
            "Unnamed task" : taskDesc.getName();
              
        lblJobName = new JLabel("<html><b>Job:</b> " + jobName + "</html>");
        lblJobName.setToolTipText("Job ID: " + jobEntry.getJobId());
        AppStyles.applyStyle(lblJobName, ".job-status label.jobName");
       
View Full Code Here

Examples of mesos.TaskDescription

        Collections.shuffle(indices);
        while (indices.size() > 0) {
          for (Iterator<Integer> it = indices.iterator(); it.hasNext();) {
            int i = it.next();
            SlaveOffer offer = offers.get(i);
            TaskDescription task = findTask(
                offer.getSlaveId(), offer.getHost(), cpus[i], mem[i]);
            if (task != null) {
              cpus[i] -= Integer.parseInt(task.getParams().get("cpus"));
              mem[i] -= Integer.parseInt(task.getParams().get("mem"));
              tasks.add(task);
            } else {
              it.remove();
            }
          }
View Full Code Here

Examples of mesos.TaskDescription

    // Create a task description to pass back to Mesos
    String name = "task " + mesosId + " (" + taskType + ")";
    Map<String, String> params = new HashMap<String, String>();
    params.put("cpus", "" + cpusPerTask);
    params.put("mem", "" + memPerTask);
    return new TaskDescription(mesosId, slaveId, name, params, new byte[0]);
  }
View Full Code Here

Examples of org.apache.synapse.task.TaskDescription

        }
       
        if (el.getQName().equals(TASK)) {
           
            SimpleQuartz simpleQuartz = new SimpleQuartz();
            TaskDescription taskDescription =
                    TaskDescriptionFactory.createTaskDescription(el,
                            XMLConfigConstants.SYNAPSE_OMNAMESPACE);
            if (taskDescription == null) {
                handleException("Invalid task - Task description can not be created  from :" + el);
                return null;
            }         
            simpleQuartz.setName(taskDescription.getName());
            simpleQuartz.setTaskDescription(taskDescription);
            simpleQuartz.setDescription(taskDescription.getDescription());
            return simpleQuartz;
        } else {
            handleException("Syntax error in the task : wrong QName for the task");
            return null;
        }
View Full Code Here

Examples of org.apache.synapse.task.TaskDescription

                    "kind of startup" + s.getClass().getName());
        }

        SimpleQuartz sq = (SimpleQuartz) s;
       
        TaskDescription taskDescription = sq.getTaskDescription();

        if (taskDescription != null) {
            OMElement task = TaskDescriptionSerializer.serializeTaskDescription(
                    SynapseConstants.SYNAPSE_OMNAMESPACE, taskDescription);
            if (task == null) {
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.