Package com.couchbase.client.core.cnc
Class DiagnosticsMonitor
- java.lang.Object
-
- com.couchbase.client.core.cnc.DiagnosticsMonitor
-
public class DiagnosticsMonitor extends Object
TheDiagnosticsMonitor
keeps a close eye on system resources and emits events if they are over a configurable threshold.While not being 100% reliable, the monitor should provide better debugging in the field and in user environments. Together with pieces like tracing the system paints are more accurate picture on what's going on.
- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiagnosticsMonitor.Builder
Allows to configure the diagnostics monitor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiagnosticsMonitor.Builder
builder(EventBus eventBus)
Creates a newDiagnosticsMonitor
with custom settings.Context
context()
static DiagnosticsMonitor
create(EventBus eventBus)
Creates a newDiagnosticsMonitor
with default settings.Mono<Void>
start()
Starts thisDiagnosticsMonitor
.Mono<Void>
stop()
Stops theDiagnosticsMonitor
.
-
-
-
Method Detail
-
create
public static DiagnosticsMonitor create(EventBus eventBus)
Creates a newDiagnosticsMonitor
with default settings.- Parameters:
eventBus
- the event bus to dispatch the events into.- Returns:
- a new
DiagnosticsMonitor
.
-
builder
public static DiagnosticsMonitor.Builder builder(EventBus eventBus)
Creates a newDiagnosticsMonitor
with custom settings.- Parameters:
eventBus
- the event bus to dispatch the events into.- Returns:
- a builder to configure the monitor.
-
start
public Mono<Void> start()
Starts thisDiagnosticsMonitor
.
-
stop
public Mono<Void> stop()
Stops theDiagnosticsMonitor
.
-
context
public Context context()
-
-