Package com.vmware.vim.binding.vim

Examples of com.vmware.vim.binding.vim.TaskInfo


                           stringBuffer.append("' (");
                           stringBuffer.append(pChange.getOp().toString());
                           stringBuffer.append(") \n");
                           if (taskUpdate) {
                              if (pChange.getName().equals("info")) {
                                 TaskInfo taskInfo =
                                       (TaskInfo) pChange.getVal();
                                 stringBuffer.append("\t\t\t");
                                 stringBuffer.append("taskMoRef: ");
                                 stringBuffer.append(taskInfo.getTask()
                                       .getValue());
                                 stringBuffer.append("\n");
                                 stringBuffer.append("state: ");
                                 stringBuffer.append(taskInfo.getState()
                                       .toString());
                                 stringBuffer.append("\n");
                                 stringBuffer.append("progress: ");
                                 stringBuffer.append(taskInfo.getProgress());
                                 stringBuffer.append("\n");
                              }
                           }
                        }
                     }
View Full Code Here


      }
   }

   public static void dumpTask(Task task) {
      StringBuilder buf = new StringBuilder();
      TaskInfo info = task.getInfo();
      buf.append("\ttaskMoRef: ").append(info.getTask().getValue()).append("\n");
      buf.append("\t").append(info.getName()).append(" : ").
         append(info.getDescription()).append("\n");
      buf.append("\tstate: ").append(info.getState()).append("\n");
      buf.append("\tprogress: ").append(info.getProgress());
      logger.info(buf);
   }
View Full Code Here

   }

   @Override
   protected void update(ManagedObject mo) {
      Task task = (Task)mo;
      TaskInfo info = task.getInfo();
      state = info.getState();
      eventChainId = info.getEventChainId();
   }
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.vim.TaskInfo

Copyright © 2018 www.massapicom. 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.