public class LinuxMemoryCalculatorPlugin extends MemoryCalculatorPlugin
| Constructor and Description |
|---|
LinuxMemoryCalculatorPlugin() |
| Modifier and Type | Method and Description |
|---|---|
long |
getPhysicalMemorySize()
Obtain the total size of the physical memory present in the system.
|
long |
getVirtualMemorySize()
Obtain the total size of the virtual memory present in the system.
|
static void |
main(java.lang.String[] args)
Test the
LinuxMemoryCalculatorPlugin |
getMemoryCalculatorPluginpublic long getPhysicalMemorySize()
getPhysicalMemorySize in class MemoryCalculatorPluginpublic long getVirtualMemorySize()
getVirtualMemorySize in class MemoryCalculatorPluginpublic static void main(java.lang.String[] args)
LinuxMemoryCalculatorPluginargs - Copyright © 2009 The Apache Software Foundation