org.apache.hadoop.util
Class MemoryCalculatorPlugin

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.util.MemoryCalculatorPlugin
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
LinuxMemoryCalculatorPlugin

Deprecated. Use ResourceCalculatorPlugin instead

@Deprecated
public abstract class MemoryCalculatorPlugin
extends Configured

Plugin to calculate virtual and physical memories on the system.


Constructor Summary
MemoryCalculatorPlugin()
          Deprecated.  
 
Method Summary
static MemoryCalculatorPlugin getMemoryCalculatorPlugin(Class<? extends MemoryCalculatorPlugin> clazz, Configuration conf)
          Deprecated. Get the MemoryCalculatorPlugin from the class name and configure it.
abstract  long getPhysicalMemorySize()
          Deprecated. Obtain the total size of the physical memory present in the system.
abstract  long getVirtualMemorySize()
          Deprecated. Obtain the total size of the virtual memory present in the system.
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryCalculatorPlugin

public MemoryCalculatorPlugin()
Deprecated. 
Method Detail

getVirtualMemorySize

public abstract long getVirtualMemorySize()
Deprecated. 
Obtain the total size of the virtual memory present in the system.

Returns:
virtual memory size in bytes.

getPhysicalMemorySize

public abstract long getPhysicalMemorySize()
Deprecated. 
Obtain the total size of the physical memory present in the system.

Returns:
physical memory size bytes.

getMemoryCalculatorPlugin

public static MemoryCalculatorPlugin getMemoryCalculatorPlugin(Class<? extends MemoryCalculatorPlugin> clazz,
                                                               Configuration conf)
Deprecated. 
Get the MemoryCalculatorPlugin from the class name and configure it. If class name is null, this method will try and return a memory calculator plugin available for this system.

Parameters:
clazz - class-name
conf - configure the plugin with this.
Returns:
MemoryCalculatorPlugin


Copyright © 2009 The Apache Software Foundation