public static class TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator extends Object implements TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore
| Modifier and Type | Field and Description |
|---|---|
protected static ArrayList<Object> |
heapSpace |
| Constructor and Description |
|---|
TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
long totalHeapUsageInMB)
This will initialize the core and check if the core can emulate the
desired target on the underlying hardware.
|
void |
load(long sizeInMB)
Increase heap usage by current process by the given amount.
|
void |
reset()
Clear references to all the GridMix-allocated special objects so that
heap usage is reduced.
|
public TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator()
public void load(long sizeInMB)
load in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCorepublic void initialize(org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
long totalHeapUsageInMB)
initialize in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCorepublic void reset()
reset in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCoreCopyright © 2014 Apache Software Foundation. All Rights Reserved.