public class SimpleGCMonitoringOracle extends Object implements OutOfCoreOracle
OutOfCoreOracle.IOAction| Modifier and Type | Field and Description | 
|---|---|
| static FloatConfOption | OPTIMAL_MEMORY_PRESSUREThe 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)
OutOfCoreOraclegcCompleted in interface OutOfCoreOraclegcInfo - GC informationpublic void startIteration()
OutOfCoreOraclestartIteration in interface OutOfCoreOraclepublic OutOfCoreOracle.IOAction[] getNextIOActions()
OutOfCoreOraclegetNextIOActions in interface OutOfCoreOraclepublic boolean approve(IOCommand command)
OutOfCoreOracleapprove in interface OutOfCoreOraclecommand - the IO command that is about to executepublic void commandCompleted(IOCommand command)
OutOfCoreOraclecommandCompleted in interface OutOfCoreOraclecommand - the IO command that is completedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.