Package org.apache.hadoop.util
Class GcTimeMonitor.Builder
java.lang.Object
org.apache.hadoop.util.GcTimeMonitor.Builder
- Enclosing class:
- GcTimeMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Set the GC alert handler.maxGcTimePercentage(int value) Set the max GC time percentage that triggers the alert handler.observationWindowMs(long value) Set observation window size in milliseconds.sleepIntervalMs(long value) Set sleep interval in milliseconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
observationWindowMs
Set observation window size in milliseconds.- Parameters:
value- value.- Returns:
- window size in milliseconds.
-
sleepIntervalMs
Set sleep interval in milliseconds.- Parameters:
value- value.- Returns:
- IntervalMs.
-
maxGcTimePercentage
Set the max GC time percentage that triggers the alert handler.- Parameters:
value- value.- Returns:
- max GC time percentage.
-
gcTimeAlertHandler
Set the GC alert handler.- Parameters:
value- value.- Returns:
- GC alert handler.
-
build
-