Record Class McpCaptureUnionStatus
java.lang.Object
java.lang.Record
com.shaft.mcp.McpCaptureUnionStatus
- Record Components:
engine- the recording family this status describeswebStatus- populated whenengineisActiveEngine.WEB;nullotherwiseplaywrightStatus- populated whenengineisActiveEngine.PLAYWRIGHT;nullotherwisemobileStatus- populated whenengineisActiveEngine.MOBILE_NATIVEorActiveEngine.MOBILE_WEB;nullotherwise
public record McpCaptureUnionStatus(ActiveEngine engine, CaptureStatus webStatus, McpMobileRecordingStatus playwrightStatus, McpMobileRecordingStatus mobileStatus)
extends Record
Union status for the
capture_start/capture_status/capture_stop family
(design doc amendment A3): engine names which recording family produced this result, and
exactly the matching section below is populated -- the other sections stay null.
ActiveEngine.WEB (and ActiveEngine.NONE, which behaves identically since no
other engine session is active) is SHAFT's own CDP-managed-browser Capture session, reported via
webStatus. ActiveEngine.PLAYWRIGHT and ActiveEngine.MOBILE_NATIVE/
ActiveEngine.MOBILE_WEB both report the shared McpMobileRecordingStatus recorder
status (the same DTO PlaywrightService's/MobileService's own package-private
recorders return) for whichever engine session is active, via playwrightStatus/
mobileStatus respectively.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpCaptureUnionStatus(ActiveEngine engine, CaptureStatus webStatus, McpMobileRecordingStatus playwrightStatus, McpMobileRecordingStatus mobileStatus) Creates an immutable union status, normalizing a nullenginetoActiveEngine.WEB. -
Method Summary
Modifier and TypeMethodDescriptionengine()Returns the value of theenginerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themobileStatusrecord component.Returns the value of theplaywrightStatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewebStatusrecord component.
-
Constructor Details
-
McpCaptureUnionStatus
public McpCaptureUnionStatus(ActiveEngine engine, CaptureStatus webStatus, McpMobileRecordingStatus playwrightStatus, McpMobileRecordingStatus mobileStatus) Creates an immutable union status, normalizing a nullenginetoActiveEngine.WEB.
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
engine
-
webStatus
-
playwrightStatus
Returns the value of theplaywrightStatusrecord component.- Returns:
- the value of the
playwrightStatusrecord component
-
mobileStatus
Returns the value of themobileStatusrecord component.- Returns:
- the value of the
mobileStatusrecord component
-