java.lang.Object
com.sun.management.ConcurrentInfo
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConcurrentInfo(long index, long startTime, long endTime, long threadCount, String phaseCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConcurrentInfofrom(CompositeData cd) longThe approximate end time of this phase in nanoseconds since Java virtual machine launch.longgetId()Returns the identifier of this phase, which is the number of phases of this type done by this collector.The reason that for this phase.longThe number of garbage collection threads used during this phase from the pool of garbage collection threads of the associated collector.The type of this phase.longThe approximate start time of this phase in nanoseconds since the Java virtual machine was started.Return theCompositeDatarepresentation of thisConcurrentInfo, including any phase-specific attributes.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.sun.management.PhaseInfo
getDurationNanos
-
Constructor Details
-
ConcurrentInfo
public ConcurrentInfo(long index, long startTime, long endTime, long threadCount, String phaseCause) -
ConcurrentInfo
-
-
Method Details
-
getPhaseType
Description copied from interface:PhaseInfoThe type of this phase. Types are unique across the Java virtual machine.- Specified by:
getPhaseTypein interfacePhaseInfo- Returns:
- a
Stringrepresenting the type of this pause.
-
getId
public long getId()Description copied from interface:PhaseInfoReturns 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:PhaseInfoThe approximate start time of this phase in nanoseconds since the Java virtual machine was started.- Specified by:
getStartTimeNanosin interfacePhaseInfo- Returns:
- the start time of this phase.
-
getEndTimeNanos
public long getEndTimeNanos()Description copied from interface:PhaseInfoThe approximate end time of this phase in nanoseconds since Java virtual machine launch.- Specified by:
getEndTimeNanosin interfacePhaseInfo- Returns:
- the end time of this phase.
-
getPhaseGarbageCollectorThreadCount
public long getPhaseGarbageCollectorThreadCount()Description copied from interface:PhaseInfoThe number of garbage collection threads used during this phase from the pool of garbage collection threads of the associated collector.- Specified by:
getPhaseGarbageCollectorThreadCountin interfacePhaseInfo- Returns:
- the number of garbage collection threads used during this phase.
-
getPhaseCause
Description copied from interface:PhaseInfoThe reason that for this phase. Reasons are unique across the Java virtual machine.- Specified by:
getPhaseCausein interfacePhaseInfo- Returns:
- a
Stringrepresenting the reason for this phase.
-
toCompositeData
Return theCompositeDatarepresentation of thisConcurrentInfo, including any phase-specific attributes. The returned value will have at least all the attributes described in thefrommethod.- Specified by:
toCompositeDatain interfaceCompositeDataView- Parameters:
ct- theCompositeTypethat the caller expects. This parameter is ignored and can be null.- Returns:
- the
CompositeDatarepresentation.
-
from
-