Examples of TaskDescription


Examples of ca.eandb.jdcp.job.TaskDescription

     * Submits the results for a task associated with this job.
     * @param taskId The ID of the task whose results are being submitted.
     * @param results The serialized results.
     */
    public void submitTaskResults(int taskId, Serialized<Object> results) {
      TaskDescription taskDesc = scheduler.remove(id, taskId);
      if (taskDesc != null) {
        Object task = taskDesc.getTask().get();
        Runnable command = new TaskResultSubmitter(this, task, results, this);
        try {
          executor.execute(command);
        } catch (RejectedExecutionException e) {
          command.run();
View Full Code Here

Examples of com.vmware.vim25.TaskDescription

    int maxCollector = taskMgr.getMaxCollector();
    System.out.println("Maximum number of collectors to " +
        "retrive historical tasks: " + maxCollector);
   
    System.out.println("\nTask description:");
    TaskDescription td = taskMgr.getDescriptioin();
    printTaskDescription(td);
   
    System.out.println("\nRecent tasks:");
    Task[] recentTasks = taskMgr.getRecentTasks();
    for(int i=0; recentTasks!=null && i<recentTasks.length; i++)
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

   
    //description:
    System.out.println("Overview:");
    System.out.println("-----------------------------------");
   
    TaskDescription taskDesc = taskManager.getTaskDescription(id);
    System.out.println("Name: " + taskDesc.getName());
    System.out.println("Description: " + taskDesc.getDescription());
    System.out.println();
   
    //parameters:
    TaskDef taskDef = taskManager.getTaskDefinition(id);
    System.out.println(taskDef);
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

      typeWidget.setValue(null);
      packageWidget.setValue(null);
      //lblDescription.setText("");

      if (task != null) {
        TaskDescription desc = task.getTaskDescription();
        taskNameWidget.setValue(desc.getName());
        //lblDescription.setText(desc.getDescription());

        if (desc instanceof ExtendedTaskDescription) {
          ExtendedTaskDescription eDesc = (ExtendedTaskDescription)desc;
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

    if (task == null) {
      lblText.setText("");
      lblIcon.setIcon(null);
    }
    else {
      TaskDescription taskDesc = task.getTaskDescription();

      lblText.setText(taskDesc.getName());
      lblText.setToolTipText(taskDesc.getDescription());

      lblIcon.setIcon(iconManager.getTaskIcon(task));
    }

    updateUI();
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

   
    //description:
    System.out.println("Overview:");
    System.out.println("-----------------------------------");
   
    TaskDescription taskDesc = taskManager.getTaskDescription(id);
    System.out.println("Name: " + taskDesc.getName());
    System.out.println("Description: " + taskDesc.getDescription());
    System.out.println();
   
    //parameters:
    TaskDef taskDef = taskManager.getTaskDefinition(id);
    System.out.println(taskDef);
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

     * Returns the given named module
     */
    public TaskDescription getTaskDescription(String taskId) {
        //try to find cached description:
        if (cacheInfo) {
            TaskDescription description = (TaskDescription)taskDescriptions.get(taskId);
            if (description != null)
                return description;
        }
       
        //obtain description from service:
        try {
            String xml = service.getTaskDescription(taskId);
            Document doc = buildXML(xml);
            TaskDescription description = serializers.getTaskDescriptionSerializer()
                                                     .readDescription(doc.getRootElement());
           
            if (cacheInfo)
                taskDescriptions.put(taskId, description);
           
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

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

Examples of gri.tasks.managers.TaskDescription

   
      synchronized(entries) {
       
        entry = (TaskEntry)entries.get(taskId);
        if (entry == null) { 
          TaskDescription desc = getTaskDescription(modFunc);
          GridpScriptTask task = new GridpScriptTask(modFunc.getFunction(), runScriptTask);
          entry = new TaskEntry(taskId, task, desc);
     
          entries.put(taskId, entry);
        }
View Full Code Here

Examples of gri.tasks.managers.TaskDescription

        elem.addContent(
          Util.createElement("description", description.getDescription()));
    }
    public TaskDescription readDescription(Element elem) {
       
        TaskDescription description = new TaskDescription();

        List children = elem.getChildren();
        Element child;
        for (int i=0; i<children.size(); i++) {
            child = (Element)children.get(i);
            String name = child.getName().toLowerCase();

            if (name.equals("name"))
                description.setName(child.getText());
            else if (name.equals("description"))
                description.setDescription(child.getText());
        }

        return description;
       
    }
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.