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(String[] args)
Test the
LinuxMemoryCalculatorPlugin |
getMemoryCalculatorPlugin
getConf, setConf
public long getPhysicalMemorySize()
getPhysicalMemorySize
in class MemoryCalculatorPlugin
public long getVirtualMemorySize()
getVirtualMemorySize
in class MemoryCalculatorPlugin
public static void main(String[] args)
LinuxMemoryCalculatorPlugin
args
- Copyright © 2010 The Apache Software Foundation