Class ConcurrentInfo

java.lang.Object
com.sun.management.ConcurrentInfo
All Implemented Interfaces:
PhaseInfo, CompositeDataView

public class ConcurrentInfo extends Object implements PhaseInfo, CompositeDataView
A ConcurrentInfo object represents a concurrent phase within a garbage collection. It includes a timestamp specifying the time since the launch of the Java virtual machine process at which the phase started, the wall clock time duration of the phase, plus additional, optional information.
Since:
18
  • Constructor Details

    • ConcurrentInfo

      public ConcurrentInfo(long index, long startTime, long endTime, long threadCount, String phaseCause)
    • ConcurrentInfo

      public ConcurrentInfo(CompositeData cd)
  • Method Details

    • getPhaseType

      public String getPhaseType()
      Description copied from interface: PhaseInfo
      The type of this phase. Types are unique across the Java virtual machine.
      Specified by:
      getPhaseType in interface PhaseInfo
      Returns:
      a String representing the type of this pause.
    • getId

      public long getId()
      Description copied from interface: PhaseInfo
      Returns the identifier of this phase, which is the number of phases of this type done by this collector.
      Specified by:
      getId in interface PhaseInfo
      Returns:
      the identifier of this phase, which is the number of phases of this type done by this collector
    • getStartTimeNanos

      public long getStartTimeNanos()
      Description copied from interface: PhaseInfo
      The approximate start time of this phase in nanoseconds since the Java virtual machine was started.
      Specified by:
      getStartTimeNanos in interface PhaseInfo
      Returns:
      the start time of this phase.
    • getEndTimeNanos

      public long getEndTimeNanos()
      Description copied from interface: PhaseInfo
      The approximate end time of this phase in nanoseconds since Java virtual machine launch.
      Specified by:
      getEndTimeNanos in interface PhaseInfo
      Returns:
      the end time of this phase.
    • getPhaseGarbageCollectorThreadCount

      public long getPhaseGarbageCollectorThreadCount()
      Description copied from interface: PhaseInfo
      The number of garbage collection threads used during this phase from the pool of garbage collection threads of the associated collector.
      Specified by:
      getPhaseGarbageCollectorThreadCount in interface PhaseInfo
      Returns:
      the number of garbage collection threads used during this phase.
    • getPhaseCause

      public String getPhaseCause()
      Description copied from interface: PhaseInfo
      The reason that for this phase. Reasons are unique across the Java virtual machine.
      Specified by:
      getPhaseCause in interface PhaseInfo
      Returns:
      a String representing the reason for this phase.
    • toCompositeData

      public CompositeData toCompositeData(CompositeType ct)
      Return the CompositeData representation of this ConcurrentInfo, including any phase-specific attributes. The returned value will have at least all the attributes described in the from method.
      Specified by:
      toCompositeData in interface CompositeDataView
      Parameters:
      ct - the CompositeType that the caller expects. This parameter is ignored and can be null.
      Returns:
      the CompositeData representation.
    • from

      public static ConcurrentInfo from(CompositeData cd)