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>
causeAccessor
static IAggregator<GarbageCollectionsInfo,?>
GC_INFO_AGGREGATOR
private int
gcCount
private int
gcLockers
private IMemberAccessor<java.lang.String,IItem>
nameAccessor
private boolean
nonRequestedSerialOldGc
private int
objectCountGCs
private int
systemGcCount
-
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 void
consume(IItem item)
Consumes another item.boolean
foundNonRequestedSerialOldGc()
int
getGcCount()
int
getGcLockers()
int
getObjectCountGCs()
int
getSystemGcCount()
GarbageCollectionsInfo
merge(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:IItemConsumer
Consumes another item.- Specified by:
consume
in interfaceIItemConsumer<GarbageCollectionsInfo>
-
merge
public GarbageCollectionsInfo merge(GarbageCollectionsInfo other)
Description copied from interface:IItemConsumer
Merges 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:
merge
in interfaceIItemConsumer<GarbageCollectionsInfo>
- Parameters:
other
- another instance to merge with- Returns:
- the merged instance
-
-