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 countwarnings- safe recorder warningsoutputPath- capture JSON output pathaiEnabled- always false for deterministic recordingprocessId- owning process IDstartedAt- session start time
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) Creates immutable safe status. -
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.static CaptureStatusReturns a safe status for an idle runtime.Returns the value of theoutputPathrecord component.longReturns the value of theprocessIdrecord 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
-
-
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
-
warnings
-
outputPath
Returns the value of theoutputPathrecord component.- Returns:
- the value of the
outputPathrecord component
-
aiEnabled
-
processId
-
startedAt
-