Class GarbageCollectionsInfo
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.memory.GarbageCollectionsInfo
-
- All Implemented Interfaces:
IItemConsumer<GarbageCollectionsInfo>
class GarbageCollectionsInfo extends java.lang.Object implements IItemConsumer<GarbageCollectionsInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private IMemberAccessor<java.lang.String,IItem>causeAccessorstatic IAggregator<GarbageCollectionsInfo,?>GC_INFO_AGGREGATORprivate intgcCountprivate intgcLockersprivate IMemberAccessor<java.lang.String,IItem>nameAccessorprivate booleannonRequestedSerialOldGcprivate intobjectCountGCsprivate intsystemGcCount
-
Constructor Summary
Constructors Constructor Description GarbageCollectionsInfo(IMemberAccessor<java.lang.String,IItem> causeAccessor, IMemberAccessor<java.lang.String,IItem> nameAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(IItem item)Consumes another item.booleanfoundNonRequestedSerialOldGc()intgetGcCount()intgetGcLockers()intgetObjectCountGCs()intgetSystemGcCount()GarbageCollectionsInfomerge(GarbageCollectionsInfo other)Merges this object with the supplied object.
-
-
-
Field Detail
-
causeAccessor
private final IMemberAccessor<java.lang.String,IItem> causeAccessor
-
nameAccessor
private final IMemberAccessor<java.lang.String,IItem> nameAccessor
-
gcCount
private int gcCount
-
systemGcCount
private int systemGcCount
-
gcLockers
private int gcLockers
-
objectCountGCs
private int objectCountGCs
-
nonRequestedSerialOldGc
private boolean nonRequestedSerialOldGc
-
GC_INFO_AGGREGATOR
public static final IAggregator<GarbageCollectionsInfo,?> GC_INFO_AGGREGATOR
-
-
Constructor Detail
-
GarbageCollectionsInfo
GarbageCollectionsInfo(IMemberAccessor<java.lang.String,IItem> causeAccessor, IMemberAccessor<java.lang.String,IItem> nameAccessor)
-
-
Method Detail
-
getGcCount
public int getGcCount()
-
getGcLockers
public int getGcLockers()
-
getObjectCountGCs
public int getObjectCountGCs()
-
getSystemGcCount
public int getSystemGcCount()
-
foundNonRequestedSerialOldGc
public boolean foundNonRequestedSerialOldGc()
-
consume
public void consume(IItem item)
Description copied from interface:IItemConsumerConsumes another item.- Specified by:
consumein interfaceIItemConsumer<GarbageCollectionsInfo>
-
merge
public GarbageCollectionsInfo merge(GarbageCollectionsInfo other)
Description copied from interface:IItemConsumerMerges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.- Specified by:
mergein interfaceIItemConsumer<GarbageCollectionsInfo>- Parameters:
other- another instance to merge with- Returns:
- the merged instance
-
-