Class GcTimeMonitor.GcData

java.lang.Object
org.apache.hadoop.util.GcTimeMonitor.GcData
All Implemented Interfaces:
Cloneable
Enclosing class:
GcTimeMonitor

public static class GcTimeMonitor.GcData extends Object implements Cloneable
Encapsulates data about GC pauses measured at the specific timestamp.
  • 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

      public GcTimeMonitor.GcData clone()
      Overrides:
      clone in class Object