Record Class CaptureStatus
java.lang.Object
java.lang.Record
com.shaft.capture.runtime.CaptureStatus
- Record Components:
state- recorder lifecycle statesessionId- logical capture session identifierbrowser- browser familycurrentUrl- sanitized current URLeventCount- persisted semantic event countreadiness- deterministic readiness statewarnings- safe recorder warningsoutputPath- capture JSON output pathaiEnabled- always false for deterministic recordingprocessId- owning process IDstartedAt- session start timenetworkTransactionCount- recorded network transaction count,0when API capture is disabledlastEndpoints- most-recent-first, bounded list of recently observed endpoints (METHOD url)pendingSignalCount- debounced browser signals (uncommitted typed input, pending clicks) not yet persisted as events
public record CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt, int networkTransactionCount, List<String> lastEndpoints, int pendingSignalCount)
extends Record
Safe recorder status returned by CLI and MCP controls.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) Compatibility constructor for callers compiled before network capture counters were added.CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt, int networkTransactionCount, List<String> lastEndpoints) Compatibility constructor for callers compiled before the pending-signal counter was added.CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt, int networkTransactionCount, List<String> lastEndpoints, int pendingSignalCount) Creates immutable safe status.CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) Compatibility constructor for callers compiled before readiness was added. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaiEnabledrecord component.browser()Returns the value of thebrowserrecord component.Returns the value of thecurrentUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theeventCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastEndpointsrecord component.intReturns the value of thenetworkTransactionCountrecord component.static CaptureStatusReturns a safe status for an idle runtime.Returns the value of theoutputPathrecord component.intReturns the value of thependingSignalCountrecord component.longReturns the value of theprocessIdrecord component.Returns the value of thereadinessrecord component.Returns the value of thesessionIdrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
CaptureStatus
public CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt, int networkTransactionCount, List<String> lastEndpoints, int pendingSignalCount) Creates immutable safe status. -
CaptureStatus
public CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt, int networkTransactionCount, List<String> lastEndpoints) Compatibility constructor for callers compiled before the pending-signal counter was added.- Parameters:
state- recorder lifecycle statesessionId- logical capture session identifierbrowser- browser familycurrentUrl- sanitized current URLeventCount- persisted semantic event countreadiness- deterministic readiness statewarnings- safe recorder warningsoutputPath- capture JSON output pathaiEnabled- always false for deterministic recordingprocessId- owning process IDstartedAt- session start timenetworkTransactionCount- recorded network transaction countlastEndpoints- most-recent-first, bounded list of recently observed endpoints
-
CaptureStatus
public CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, CaptureReadiness.State readiness, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) Compatibility constructor for callers compiled before network capture counters were added.- Parameters:
state- recorder lifecycle statesessionId- logical capture session identifierbrowser- browser familycurrentUrl- sanitized current URLeventCount- persisted semantic event countreadiness- deterministic readiness statewarnings- safe recorder warningsoutputPath- capture JSON output pathaiEnabled- always false for deterministic recordingprocessId- owning process IDstartedAt- session start time
-
CaptureStatus
public CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) Compatibility constructor for callers compiled before readiness was added.- Parameters:
state- recorder lifecycle statesessionId- logical capture session identifierbrowser- browser familycurrentUrl- sanitized current URLeventCount- persisted semantic event countwarnings- safe recorder warningsoutputPath- capture JSON output pathaiEnabled- always false for deterministic recordingprocessId- owning process IDstartedAt- session start time
-
-
Method Details
-
notRunning
Returns a safe status for an idle runtime.- Returns:
- not-running status
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
state
-
sessionId
-
browser
-
currentUrl
Returns the value of thecurrentUrlrecord component.- Returns:
- the value of the
currentUrlrecord component
-
eventCount
public int eventCount()Returns the value of theeventCountrecord component.- Returns:
- the value of the
eventCountrecord component
-
readiness
-
warnings
-
outputPath
Returns the value of theoutputPathrecord component.- Returns:
- the value of the
outputPathrecord component
-
aiEnabled
-
processId
-
startedAt
-
networkTransactionCount
public int networkTransactionCount()Returns the value of thenetworkTransactionCountrecord component.- Returns:
- the value of the
networkTransactionCountrecord component
-
lastEndpoints
Returns the value of thelastEndpointsrecord component.- Returns:
- the value of the
lastEndpointsrecord component
-
pendingSignalCount
public int pendingSignalCount()Returns the value of thependingSignalCountrecord component.- Returns:
- the value of the
pendingSignalCountrecord component
-