public final class JVMEnvironment extends Object
| Constructor and Description |
|---|
JVMEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHostName() |
long |
getMaxMemory() |
int |
getMaxMemoryMB() |
int |
getNumProcessors() |
int |
getPercentUsedMemory() |
long |
getUsedMemory() |
int |
getUsedMemoryMB() |
String |
toString() |
public int getNumProcessors()
public long getUsedMemory()
public int getUsedMemoryMB()
public long getMaxMemory()
public int getMaxMemoryMB()
public int getPercentUsedMemory()
getUsedMemoryMB() as a percentage of getMaxMemoryMB() as a percentage in [0,100]public String getHostName()
UNKNOWN_HOST if it can't be determinedCopyright © 2012-2013 Myrrix Ltd. All Rights Reserved.