Package org.apache.cassandra.diag
Interface DiagnosticEventServiceMBean
- All Known Implementing Classes:
DiagnosticEventService
public interface DiagnosticEventServiceMBean
Provides JMX enabled attributes and operations implemented by
DiagnosticEventService.-
Method Summary
Modifier and TypeMethodDescriptionvoidKill switch for disabling all events immediately, without restarting the node.voiddisableEventPersistence(String eventClazz) Stop storing events.voidenableEventPersistence(String eventClazz) Start storing events to make them available viareadEvents(String, Long, int).booleanreadEvents(String eventClazz, Long lastKey, int limit) Retrieved all events of specified type starting with provided key.
-
Method Details
-
isDiagnosticsEnabled
boolean isDiagnosticsEnabled() -
disableDiagnostics
void disableDiagnostics()Kill switch for disabling all events immediately, without restarting the node. Please edit cassandra.yaml for making this permanent. -
readEvents
Retrieved all events of specified type starting with provided key. Result will be sorted chronologically.- Parameters:
eventClazz- fqn of event classlastKey- ID of first event to retrievelimit- number of results to return
-
enableEventPersistence
Start storing events to make them available viareadEvents(String, Long, int). -
disableEventPersistence
Stop storing events.
-