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
ConstructorDescriptionConcurrentInfo
(long index, long startTime, long endTime, long threadCount, String phaseCause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConcurrentInfo
from
(CompositeData cd) long
The approximate end time of this phase in nanoseconds since Java virtual machine launch.long
getId()
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.long
The 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.long
The approximate start time of this phase in nanoseconds since the Java virtual machine was started.Return theCompositeData
representation of thisConcurrentInfo
, including any phase-specific attributes.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PhaseInfo
The type of this phase. Types are unique across the Java virtual machine.- Specified by:
getPhaseType
in interfacePhaseInfo
- 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. -
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 interfacePhaseInfo
- 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 interfacePhaseInfo
- 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 interfacePhaseInfo
- Returns:
- the number of garbage collection threads used during this phase.
-
getPhaseCause
Description copied from interface:PhaseInfo
The reason that for this phase. Reasons are unique across the Java virtual machine.- Specified by:
getPhaseCause
in interfacePhaseInfo
- Returns:
- a
String
representing the reason for this phase.
-
toCompositeData
Return theCompositeData
representation of thisConcurrentInfo
, including any phase-specific attributes. The returned value will have at least all the attributes described in thefrom
method.- Specified by:
toCompositeData
in interfaceCompositeDataView
- Parameters:
ct
- theCompositeType
that the caller expects. This parameter is ignored and can be null.- Returns:
- the
CompositeData
representation.
-
from
-