|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.JVM
@InterfaceAudience.Private public class JVM
This class is a wrapper for the implementation of com.sun.management.UnixOperatingSystemMXBean It will decide to use the sun api or its own implementation depending on the runtime (vendor) used.
Constructor Summary | |
---|---|
JVM()
Constructor. |
Method Summary | |
---|---|
long |
getFreeMemory()
|
long |
getMaxFileDescriptorCount()
Get the number of the maximum file descriptors the system can use. |
int |
getNumberOfRunningProcess()
Workaround to get the current number of process running. |
long |
getOpenFileDescriptorCount()
Get the number of opened filed descriptor for the runtime jvm. |
double |
getSystemLoadAverage()
|
static boolean |
isGZIPOutputStreamFinishBroken()
Check if the finish() method of GZIPOutputStream is broken |
static boolean |
isUnix()
Check if the OS is unix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JVM()
Method Detail |
---|
public static boolean isUnix()
public static boolean isGZIPOutputStreamFinishBroken()
public long getOpenFileDescriptorCount()
public double getSystemLoadAverage()
OperatingSystemMXBean.getSystemLoadAverage()
public long getFreeMemory()
public int getNumberOfRunningProcess()
public long getMaxFileDescriptorCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |