@InterfaceAudience.Private public class JVM extends Object
Constructor and Description |
---|
JVM()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isUnix()
public static boolean isGZIPOutputStreamFinishBroken()
public long getOpenFileDescriptorCount()
public double getSystemLoadAverage()
public long getFreeMemory()
public int getNumberOfRunningProcess()
public long getMaxFileDescriptorCount()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.