Examples of HostHardwareSummary


Examples of com.vmware.vim25.HostHardwareSummary

    int cpuNumInCpuThreads = 1;
    List<ManagedObjectReference> hosts = (List<ManagedObjectReference>)_context.getVimClient().getDynamicProperty(_mor, "host");
    if(hosts != null && hosts.size() > 0) {
      for(ManagedObjectReference morHost : hosts) {
        HostMO hostMo = new HostMO(_context, morHost);
        HostHardwareSummary hardwareSummary = hostMo.getHostHardwareSummary();

        if(hardwareSummary.getNumCpuCores()*hardwareSummary.getNumCpuThreads() > cpuNumInCpuThreads)
          cpuNumInCpuThreads = hardwareSummary.getNumCpuCores()*hardwareSummary.getNumCpuThreads();
      }
    }
    summary.setCpuCount(cpuNumInCpuThreads);
    summary.setCpuSpeed(vmwareSummary.getTotalCpu());
    summary.setMemoryBytes(vmwareSummary.getTotalMemory());
 
View Full Code Here

Examples of com.vmware.vim25.HostHardwareSummary

    int cpuNumInCpuThreads = 1;
    ManagedObjectReference[] hosts = (ManagedObjectReference[])_context.getServiceUtil().getDynamicProperty(_mor, "host");
    if(hosts != null && hosts.length > 0) {
      for(ManagedObjectReference morHost : hosts) {
        HostMO hostMo = new HostMO(_context, morHost);
        HostHardwareSummary hardwareSummary = hostMo.getHostHardwareSummary();
       
        if(hardwareSummary.getNumCpuCores()*hardwareSummary.getNumCpuThreads() > cpuNumInCpuThreads)
          cpuNumInCpuThreads = hardwareSummary.getNumCpuCores()*hardwareSummary.getNumCpuThreads();
      }
    }
    summary.setCpuCount(cpuNumInCpuThreads);
    summary.setCpuSpeed(vmwareSummary.getTotalCpu());
    summary.setMemoryBytes(vmwareSummary.getTotalMemory());
 
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.