TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCorepublic static class TotalHeapUsageEmulatorPlugin.DefaultHeapUsageEmulator extends java.lang.Object implements TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore
| Constructor | Description |
|---|---|
DefaultHeapUsageEmulator() |
| Modifier and Type | Method | 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.HeapUsageEmulatorCore@VisibleForTesting public 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–2025 Apache Software Foundation. All rights reserved.