Examples of OperatingSystemMXBean


Examples of java.lang.management.OperatingSystemMXBean


public class NodeCpuCollector implements Callable<NodeCpuInfo> {

  public NodeCpuInfo call() throws Exception {
    OperatingSystemMXBean osBean = ManagementFactory.getOperatingSystemMXBean();
    return new NodeCpuInfo(osBean.getAvailableProcessors());
  }
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.