Class LogStore
java.lang.Object
ai.attackframework.tools.burp.ui.log.LogStore
Log model: entries, duplicate compaction, memory cap, and filtered aggregation.
Threading: methods are expected to be called on the EDT.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAggregated line for full rebuilds.static final recordRenderer decision for incremental updates.static final classMinimal event; repeats track consecutive duplicates.static enumLevels (TRACE invalid input: '<' DEBUG invalid input: '<' INFO invalid input: '<' WARN invalid input: '<' ERROR).static final recordResult of a singletrimIfNeeded()call.static interfaceVisibility predicate derived from the UI. -
Constructor Summary
ConstructorsConstructorDescriptionLogStore(int maxEntries, LogStore.VisibilityFilter filter) Constructs a bounded log model with a visibility filter. -
Method Summary
Modifier and TypeMethodDescriptionBuilds filtered, aggregated lines for a full repaint.voidclear()Clears all stored entries.ingest(LogStore.Level level, String message, LocalDateTime now) Ingests an event, compacting duplicates.voidsetFilter(LogStore.VisibilityFilter filter) Updates the visibility predicate used during render decisions.intsize()Returns the number of stored (unfiltered) entries.Enforces the entry cap.
-
Constructor Details
-
LogStore
Constructs a bounded log model with a visibility filter.- Parameters:
maxEntries- maximum entries to retain before trimming (> 0)filter- predicate used for visibility decisions during renders
-
-
Method Details
-
setFilter
Updates the visibility predicate used during render decisions.- Parameters:
filter- new predicate (required)
-
clear
public void clear()Clears all stored entries. -
size
public int size()Returns the number of stored (unfiltered) entries.- Returns:
- entry count
-
ingest
Ingests an event, compacting duplicates. Returns an incremental render decision. Stored model is unfiltered; the filter is used for visibility decisions only. -
trimIfNeeded
Enforces the entry cap.Returns
LogStore.TrimResult.NONEwhen no trim was required. Otherwise returns the count of removed (unfiltered) entries and the count of those that would have been visible under the current filter. The visible count lets callers decide whether the rendered document needs to change at all (filter-rejected entries can be trimmed silently with no document edit). -
buildVisibleAggregated
Builds filtered, aggregated lines for a full repaint.
-