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 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.booleanEnforces cap; returns true when a full rebuild is required.
-
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
public boolean trimIfNeeded()Enforces cap; returns true when a full rebuild is required. -
buildVisibleAggregated
Builds filtered, aggregated lines for a full repaint.
-