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(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.HeapUsageEmulatorCore
public void initialize(ResourceCalculatorPlugin monitor, long totalHeapUsageInMB)
initialize
in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore
public void reset()
reset
in interface TotalHeapUsageEmulatorPlugin.HeapUsageEmulatorCore
Copyright © 2013 Apache Software Foundation. All rights reserved.