public abstract class MemoryCalculatorPlugin extends Configured
Constructor and Description |
---|
MemoryCalculatorPlugin() |
Modifier and Type | Method and Description |
---|---|
static MemoryCalculatorPlugin |
getMemoryCalculatorPlugin(Class<? extends MemoryCalculatorPlugin> clazz,
Configuration conf)
Get the MemoryCalculatorPlugin from the class name and configure it.
|
abstract long |
getPhysicalMemorySize()
Obtain the total size of the physical memory present in the system.
|
abstract long |
getVirtualMemorySize()
Obtain the total size of the virtual memory present in the system.
|
getConf, setConf
public abstract long getVirtualMemorySize()
public abstract long getPhysicalMemorySize()
public static MemoryCalculatorPlugin getMemoryCalculatorPlugin(Class<? extends MemoryCalculatorPlugin> clazz, Configuration conf)
clazz
- class-nameconf
- configure the plugin with this.Copyright © 2010 The Apache Software Foundation