com.hazelcast.util
Class OperatingSystemMXBeanSupport

java.lang.Object
  extended by com.hazelcast.util.OperatingSystemMXBeanSupport

public final class OperatingSystemMXBeanSupport
extends Object

Support class for reading attributes from OperatingSystemMXBean.


Method Summary
static long readLongAttribute(String attributeName, long defaultValue)
          Reads a long attribute from OperatingSystemMXBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readLongAttribute

public static long readLongAttribute(String attributeName,
                                     long defaultValue)
Reads a long attribute from OperatingSystemMXBean.

Parameters:
attributeName - name
defaultValue - default value
Returns:
value of attribute


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.