Record Class CaptureStatus

java.lang.Object
java.lang.Record
com.shaft.capture.runtime.CaptureStatus
Record Components:
state - recorder lifecycle state
sessionId - logical capture session identifier
browser - browser family
currentUrl - sanitized current URL
eventCount - persisted semantic event count
warnings - safe recorder warnings
outputPath - capture JSON output path
aiEnabled - always false for deterministic recording
processId - owning process ID
startedAt - session start time

public record CaptureStatus(CaptureStatus.State state, String sessionId, String browser, String currentUrl, int eventCount, List<String> warnings, String outputPath, boolean aiEnabled, long processId, Instant startedAt) extends Record
Safe recorder status returned by CLI and MCP controls.
  • Constructor Details

  • Method Details

    • notRunning

      public static CaptureStatus notRunning()
      Returns a safe status for an idle runtime.
      Returns:
      not-running status
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • state

      public CaptureStatus.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • browser

      public String browser()
      Returns the value of the browser record component.
      Returns:
      the value of the browser record component
    • currentUrl

      public String currentUrl()
      Returns the value of the currentUrl record component.
      Returns:
      the value of the currentUrl record component
    • eventCount

      public int eventCount()
      Returns the value of the eventCount record component.
      Returns:
      the value of the eventCount record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component
    • outputPath

      public String outputPath()
      Returns the value of the outputPath record component.
      Returns:
      the value of the outputPath record component
    • aiEnabled

      public boolean aiEnabled()
      Returns the value of the aiEnabled record component.
      Returns:
      the value of the aiEnabled record component
    • processId

      public long processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component