Search in sources :

Example 1 with HostConnectInfo

use of com.vmware.vim25.HostConnectInfo in project CloudStack-archive by CloudStack-extras.

the class HostMO method getHostHardwareSummary.

public HostHardwareSummary getHostHardwareSummary() throws Exception {
    HostConnectInfo hostInfo = _context.getService().queryHostConnectionInfo(_mor);
    HostHardwareSummary hardwareSummary = hostInfo.getHost().getHardware();
    return hardwareSummary;
}
Also used : HostConnectInfo(com.vmware.vim25.HostConnectInfo) HostHardwareSummary(com.vmware.vim25.HostHardwareSummary)

Example 2 with HostConnectInfo

use of com.vmware.vim25.HostConnectInfo in project CloudStack-archive by CloudStack-extras.

the class HostMO method getHyperHostResourceSummary.

@Override
public VmwareHypervisorHostResourceSummary getHyperHostResourceSummary() throws Exception {
    if (s_logger.isTraceEnabled())
        s_logger.trace("vCenter API trace - getHyperHostResourceSummary(). target MOR: " + _mor.get_value());
    VmwareHypervisorHostResourceSummary summary = new VmwareHypervisorHostResourceSummary();
    HostConnectInfo hostInfo = _context.getService().queryHostConnectionInfo(_mor);
    HostHardwareSummary hardwareSummary = hostInfo.getHost().getHardware();
    // TODO: not sure how hyper-thread is counted in VMware resource pool
    summary.setCpuCount(hardwareSummary.getNumCpuCores() * hardwareSummary.getNumCpuPkgs());
    summary.setMemoryBytes(hardwareSummary.getMemorySize());
    summary.setCpuSpeed(hardwareSummary.getCpuMhz());
    if (s_logger.isTraceEnabled())
        s_logger.trace("vCenter API trace - getHyperHostResourceSummary() done");
    return summary;
}
Also used : HostConnectInfo(com.vmware.vim25.HostConnectInfo) HostHardwareSummary(com.vmware.vim25.HostHardwareSummary)

Example 3 with HostConnectInfo

use of com.vmware.vim25.HostConnectInfo in project cloudstack by apache.

the class HostMO method getHostHardwareSummary.

public HostHardwareSummary getHostHardwareSummary() throws Exception {
    HostConnectInfo hostInfo = _context.getService().queryHostConnectionInfo(_mor);
    HostHardwareSummary hardwareSummary = hostInfo.getHost().getHardware();
    return hardwareSummary;
}
Also used : HostConnectInfo(com.vmware.vim25.HostConnectInfo) HostHardwareSummary(com.vmware.vim25.HostHardwareSummary)

Aggregations

HostConnectInfo (com.vmware.vim25.HostConnectInfo)3 HostHardwareSummary (com.vmware.vim25.HostHardwareSummary)3