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
readiness - deterministic readiness state
warnings - safe recorder warnings
outputPath - capture JSON output path
aiEnabled - always false for deterministic recording
processId - owning process ID
startedAt - session start time
networkTransactionCount - recorded network transaction count, 0 when API capture is disabled
lastEndpoints - 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.
  • 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 state
      sessionId - logical capture session identifier
      browser - browser family
      currentUrl - sanitized current URL
      eventCount - persisted semantic event count
      readiness - deterministic readiness state
      warnings - safe recorder warnings
      outputPath - capture JSON output path
      aiEnabled - always false for deterministic recording
      processId - owning process ID
      startedAt - session start time
      networkTransactionCount - recorded network transaction count
      lastEndpoints - 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 state
      sessionId - logical capture session identifier
      browser - browser family
      currentUrl - sanitized current URL
      eventCount - persisted semantic event count
      readiness - deterministic readiness state
      warnings - safe recorder warnings
      outputPath - capture JSON output path
      aiEnabled - always false for deterministic recording
      processId - owning process ID
      startedAt - 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 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
  • 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
    • readiness

      public CaptureReadiness.State readiness()
      Returns the value of the readiness record component.
      Returns:
      the value of the readiness 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
    • networkTransactionCount

      public int networkTransactionCount()
      Returns the value of the networkTransactionCount record component.
      Returns:
      the value of the networkTransactionCount record component
    • lastEndpoints

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

      public int pendingSignalCount()
      Returns the value of the pendingSignalCount record component.
      Returns:
      the value of the pendingSignalCount record component