Package org.apache.cassandra.diag.store
Interface DiagnosticEventStore<T extends Comparable<T>>
- Type Parameters:
T- type of key that is used to reference an event
- All Known Implementing Classes:
DiagnosticEventMemoryStore
public interface DiagnosticEventStore<T extends Comparable<T>>
Enables storing and retrieving
DiagnosticEvents.-
Method Summary
Modifier and TypeMethodDescriptionReturns the greatest event ID that can be used to fetch events viascan(Comparable, int).voidload()Initializes the store.Returns a view on all events with a key greater than the provided value (inclusive) up to the specified number of results.voidstore(DiagnosticEvent event) Stores provided event and returns the new associated store key for it.
-
Method Details
-
load
void load()Initializes the store. -
store
Stores provided event and returns the new associated store key for it. -
scan
Returns a view on all events with a key greater than the provided value (inclusive) up to the specified number of results. Events may be added or become unavailable over time. Keys must be unique, sortable and monotonically incrementing. Returns an empty map in case no events could be found. -
getLastEventId
T getLastEventId()Returns the greatest event ID that can be used to fetch events viascan(Comparable, int).
-