Class GcAnalyzer
- java.lang.Object
-
- com.couchbase.client.core.cnc.diagnostics.GcAnalyzer
-
- All Implemented Interfaces:
Analyzer
,EventListener
,NotificationListener
public class GcAnalyzer extends Object implements Analyzer, NotificationListener
TheGcAnalyzer
takes incomingGarbageCollectionNotificationInfo
from the JVM and analyzes it.If the info is deemed worthy enough to be useful, an event is returned. If not, null is returned.
- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GcAnalyzer.Concurrency
Concurrency of a given algorithm/gc type.static class
GcAnalyzer.GcGeneration
Specifies the generation that got collected in this event.static class
GcAnalyzer.GcType
Holds the known type of garbage collectors and their representations in the GC logs in textual format.
-
Constructor Summary
Constructors Constructor Description GcAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GarbageCollectionsDetectedEvent
fetchEvent(Event.Severity severity, Context context)
void
handleNotification(Notification notification, Object ignored)
Mono<Void>
start()
Mono<Void>
stop()
-
-
-
Method Detail
-
fetchEvent
public GarbageCollectionsDetectedEvent fetchEvent(Event.Severity severity, Context context)
- Specified by:
fetchEvent
in interfaceAnalyzer
-
handleNotification
public void handleNotification(Notification notification, Object ignored)
- Specified by:
handleNotification
in interfaceNotificationListener
-
-