Java 类com.vmware.vim25.ManagedEntityStatus 实例源码

项目:viAutomator    文件:VMWareService.java   
@GET
   @Path("/vmstatus/{vmname}")
public String getStatusForVM(@PathParam("vmname") String vmName) throws VMWareException {
       Configuration conf = Configuration.getInstance();

       VMWareHelper helper = VMWareHelper.getInstance(conf.getUserName(), conf.getPassword(), conf.getUrl());

       ManagedEntityStatus status = helper.getStatusForVm(vmName);

       if (status == null) {
           throw new VMWareException("Name of VM " + vmName + " not found");
       }

       return helper.getStatusForVm(vmName).toString();
}
项目:vijava    文件:ManagedEntity.java   
public ManagedEntityStatus getConfigStatus()
{
    return (ManagedEntityStatus) getCurrentProperty("configStatus");
}
项目:vijava    文件:ManagedEntity.java   
public ManagedEntityStatus getOverallStatus()
{
    return (ManagedEntityStatus) getCurrentProperty("overallStatus");
}