ResourceCalculatorPlugin
instead@Deprecated public abstract class MemoryCalculatorPlugin extends Configured
构造器和说明 |
---|
MemoryCalculatorPlugin()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
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 © 2009 The Apache Software Foundation