java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.gc.impl.GCEventObject
All Implemented Interfaces:
BaseEvent, GCEvent
Direct Known Subclasses:
BalancedEventObject, GenconEventObject

public class GCEventObject extends Object implements GCEvent
  • Constructor Details

    • GCEventObject

      public GCEventObject(long heapSize, long freeHeap, double pauseTime, long eventTime)
  • Method Details

    • setLoaSize

      public void setLoaSize(long loaSize)
    • setLoaFreeSize

      public void setLoaFreeSize(long loaFreeSize)
    • setFinalReferencesCleared

      public void setFinalReferencesCleared(long finalReferencesCleared)
    • getHeapSize

      public long getHeapSize()
      Specified by:
      getHeapSize in interface GCEvent
      Returns:
      the size of the heap in mb
    • getFreeHeapAfterGC

      public long getFreeHeapAfterGC()
      Specified by:
      getFreeHeapAfterGC in interface GCEvent
      Returns:
      the size of the free heap after a garbage collection has taken place
    • getPauseTime

      public double getPauseTime()
      Specified by:
      getPauseTime in interface GCEvent
      Returns:
      the duration of the garbage collection in milliseconds
    • getEventTime

      public long getEventTime()
      Specified by:
      getEventTime in interface BaseEvent
      Returns:
      the time the event took place in milliseconds since epoch
    • getReason

      public String getReason()
      Specified by:
      getReason in interface GCEvent
      Returns:
      The reason of the garbage collection e.g. allocation failure
    • getType

      public String getType()
      Specified by:
      getType in interface GCEvent
      Returns:
      The type of the garbage collection e.g. system gc
    • getLoaSize

      public long getLoaSize()
      Specified by:
      getLoaSize in interface GCEvent
      Returns:
      The size of the large object allocation area
    • getLoaFreeSize

      public long getLoaFreeSize()
      Specified by:
      getLoaFreeSize in interface GCEvent
      Returns:
      The free space in the large object allocation area
    • getFinalReferencesCleared

      public long getFinalReferencesCleared()
      Specified by:
      getFinalReferencesCleared in interface GCEvent
      Returns:
      The number of final references cleared
    • getMarkTime

      public double getMarkTime()
      Specified by:
      getMarkTime in interface GCEvent
      Returns:
      The duration of the mark phase
    • setMarkTime

      public void setMarkTime(double markTime)
    • getSweepTime

      public double getSweepTime()
      Specified by:
      getSweepTime in interface GCEvent
      Returns:
      The duration of the sweep phase
    • setSweepTime

      public void setSweepTime(double sweepTime)
    • getCompactTime

      public double getCompactTime()
      Specified by:
      getCompactTime in interface GCEvent
      Returns:
      The duration of the compaction phase
    • setCompactTime

      public void setCompactTime(double compactTime)
    • getUsedHeapAfterGC

      public long getUsedHeapAfterGC()
      Specified by:
      getUsedHeapAfterGC in interface GCEvent
      Returns:
      the size of the used heap after a garbage collection has taken place
    • getFreeHeapBeforeGC

      public long getFreeHeapBeforeGC()
    • setFreeHeapBeforeGC

      public void setFreeHeapBeforeGC(long freeHeapBeforeGC)
    • setReason

      public void setReason(String reason)
    • setType

      public void setType(String type)
    • setGCMode

      public void setGCMode(String mode)
    • getGCMode

      public String getGCMode()
      Specified by:
      getGCMode in interface GCEvent
      Returns:
      The gc mode