Package org.apache.hadoop.util
Class GcTimeMonitor.GcData
java.lang.Object
org.apache.hadoop.util.GcTimeMonitor.GcData
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- GcTimeMonitor
Encapsulates data about GC pauses measured at the specific timestamp.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()longReturns the accumulated number of GC pauses since this JVM started.longReturns accumulated GC time since this JVM started.longReturns the time since the start of the associated GcTimeMonitor.intReturns the percentage (0..100) of time that the JVM spent in GC pauses within the observation window of the associated GcTimeMonitor.longReturns the absolute timestamp when this measurement was taken.
-
Constructor Details
-
GcData
public GcData()
-
-
Method Details
-
getTimestamp
public long getTimestamp()Returns the absolute timestamp when this measurement was taken.- Returns:
- timestamp.
-
getGcMonitorRunTime
public long getGcMonitorRunTime()Returns the time since the start of the associated GcTimeMonitor.- Returns:
- GcMonitorRunTime.
-
getAccumulatedGcTime
public long getAccumulatedGcTime()Returns accumulated GC time since this JVM started.- Returns:
- AccumulatedGcTime.
-
getAccumulatedGcCount
public long getAccumulatedGcCount()Returns the accumulated number of GC pauses since this JVM started.- Returns:
- AccumulatedGcCount.
-
getGcTimePercentage
public int getGcTimePercentage()Returns the percentage (0..100) of time that the JVM spent in GC pauses within the observation window of the associated GcTimeMonitor.- Returns:
- GcTimePercentage.
-
clone
-