public static class TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator extends Object implements TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore
| Constructor and Description |
|---|
DefaultHeapUsageEmulator() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeapSpaceSize()
Gets the total number of 1mb objects stored in the emulator.
|
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 void load(long sizeInMB)
load in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCorepublic int getHeapSpaceSize()
public void initialize(org.apache.hadoop.yarn.util.ResourceCalculatorPlugin monitor,
long totalHeapUsageInMB)
initialize in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCorepublic void reset()
reset in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCoreCopyright © 2008–2023 Apache Software Foundation. All rights reserved.