- java.lang.Object
-
- com.microsoft.gctoolkit.event.jvm.JVMEvent
-
- com.microsoft.gctoolkit.event.GCEvent
-
- Direct Known Subclasses:
FullZGCCycle,G1GCEvent,GenerationalGCEvent,MajorZGCCycle,MinorZGCCycle,ShenandoahCycle
public abstract class GCEvent extends JVMEvent
A GCEvent is something that happens in the GC sub system that is captured in the log, e.g. a Full GCA GCEvent has meta data which it expects to be overridden, e.g. whether or not it was a young collection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGCEvent(DateTimeStamp timeStamp, double duration)protectedGCEvent(DateTimeStamp timeStamp, GarbageCollectionTypes gcType, double duration)protectedGCEvent(DateTimeStamp timeStamp, GarbageCollectionTypes gcType, GCCause cause, double duration)protectedGCEvent(DateTimeStamp timeStamp, GCCause cause, double duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GarbageCollectionTypesgetGarbageCollectionType()GCCausegetGCCause()inthashCode()voidsetGCCause(GCCause cause)-
Methods inherited from class com.microsoft.gctoolkit.event.jvm.JVMEvent
getDateTimeStamp, getDuration, toString
-
-
-
-
Constructor Detail
-
GCEvent
protected GCEvent(DateTimeStamp timeStamp, GarbageCollectionTypes gcType, GCCause cause, double duration)
- Parameters:
timeStamp- for eventgcType- for eventcause- of eventduration- of event
-
GCEvent
protected GCEvent(DateTimeStamp timeStamp, double duration)
- Parameters:
timeStamp- for eventduration- of event
-
GCEvent
protected GCEvent(DateTimeStamp timeStamp, GCCause cause, double duration)
- Parameters:
timeStamp- for eventcause- that triggered the eventduration- of event
-
GCEvent
protected GCEvent(DateTimeStamp timeStamp, GarbageCollectionTypes gcType, double duration)
- Parameters:
timeStamp- for eventgcType- of the eventduration- of the event
-
-
Method Detail
-
setGCCause
public void setGCCause(GCCause cause)
- Parameters:
cause- of the event
-
getGCCause
public GCCause getGCCause()
- Returns:
- the cause of the event.
-
getGarbageCollectionType
public GarbageCollectionTypes getGarbageCollectionType()
- Returns:
- the type of collection this event represents
-
-