public class SimpleGCMonitoringOracle extends Object implements OutOfCoreOracle
OutOfCoreOracle.IOAction
Modifier and Type | Field and Description |
---|---|
static FloatConfOption |
OPTIMAL_MEMORY_PRESSURE
The optimal memory pressure at which GC behavior is close to ideal.
|
Constructor and Description |
---|
SimpleGCMonitoringOracle(ImmutableClassesGiraphConfiguration conf,
OutOfCoreEngine oocEngine)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
approve(IOCommand command)
Whether a command is appropriate to bring the memory to a more desired
state.
|
void |
commandCompleted(IOCommand command)
Notification of command completion.
|
void |
gcCompleted(com.sun.management.GarbageCollectionNotificationInfo gcInfo)
Notification of GC completion.
|
OutOfCoreOracle.IOAction[] |
getNextIOActions()
Get the next set of viable IO actions to help bring memory to a more
desired state.
|
void |
startIteration()
Called at the beginning of a superstep.
|
public static final FloatConfOption OPTIMAL_MEMORY_PRESSURE
public SimpleGCMonitoringOracle(ImmutableClassesGiraphConfiguration conf, OutOfCoreEngine oocEngine)
conf
- configurationoocEngine
- out-of-core enginepublic void gcCompleted(com.sun.management.GarbageCollectionNotificationInfo gcInfo)
OutOfCoreOracle
gcCompleted
in interface OutOfCoreOracle
gcInfo
- GC informationpublic void startIteration()
OutOfCoreOracle
startIteration
in interface OutOfCoreOracle
public OutOfCoreOracle.IOAction[] getNextIOActions()
OutOfCoreOracle
getNextIOActions
in interface OutOfCoreOracle
public boolean approve(IOCommand command)
OutOfCoreOracle
approve
in interface OutOfCoreOracle
command
- the IO command that is about to executepublic void commandCompleted(IOCommand command)
OutOfCoreOracle
commandCompleted
in interface OutOfCoreOracle
command
- the IO command that is completedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.