org.apache.hadoop.mapred.gridmix.emulators.resourceusage
Interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore

All Known Implementing Classes:
TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator
Enclosing class:
TotalHeapUsageEmulatorPlugin

public static interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore

Defines the core heap usage emulation algorithm. This engine is expected to perform certain memory intensive operations to consume some amount of heap. load(long) should load the current heap and increase the heap usage by the specified value. This core engine can be initialized using the initialize(ResourceCalculatorPlugin, long) API to suit the underlying hardware better.


Method Summary
 void initialize(org.apache.hadoop.mapreduce.util.ResourceCalculatorPlugin monitor, long totalHeapUsageInMB)
          Initialize the core.
 void load(long sizeInMB)
          Performs some memory intensive operations to use up some heap.
 void reset()
          Reset the resource usage
 

Method Detail

load

void load(long sizeInMB)
Performs some memory intensive operations to use up some heap.


initialize

void initialize(org.apache.hadoop.mapreduce.util.ResourceCalculatorPlugin monitor,
                long totalHeapUsageInMB)
Initialize the core.


reset

void reset()
Reset the resource usage



Copyright © 2012 Apache Software Foundation. All Rights Reserved.