Package org.apache.cassandra.diag.store
Interface DiagnosticEventStore<T extends java.lang.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 java.lang.Comparable<T>>
Enables storing and retrievingDiagnosticEvent
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getLastEventId()
Returns the greatest event ID that can be used to fetch events viascan(Comparable, int)
.void
load()
Initializes the store.java.util.NavigableMap<T,DiagnosticEvent>
scan(T key, int limit)
Returns a view on all events with a key greater than the provided value (inclusive) up to the specified number of results.void
store(DiagnosticEvent event)
Stores provided event and returns the new associated store key for it.
-
-
-
Method Detail
-
load
void load()
Initializes the store.
-
store
void store(DiagnosticEvent event)
Stores provided event and returns the new associated store key for it.
-
scan
java.util.NavigableMap<T,DiagnosticEvent> scan(T key, int limit)
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)
.
-
-