Package org.rhq.core.system

Examples of org.rhq.core.system.CpuInformation


            return results;
        }
       
        int numberOfCpus = sysInfo.getNumberOfCpus();
        for (int i = 0; i < numberOfCpus; i++) {
            CpuInformation cpuInfo = sysInfo.getCpu(i);
            DiscoveredResourceDetails details = new DiscoveredResourceDetails(discoveryContext.getResourceType(), // resourceType
                String.valueOf(i), // resourceKey
                "CPU " + i, // resourceName
                cpuInfo.getCpuInfo().getModel(), // resourceVersion
                cpuInfo.getCpuInfo().getVendor() + ' ' + cpuInfo.getCpuInfo().getModel(), // resourceDescription
                null, null);

            results.add(details);
        }
        return results;
View Full Code Here

TOP

Related Classes of org.rhq.core.system.CpuInformation

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.