Record Class DevSession
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevSession
public record DevSession(String sessionId, long pid, String devServerVersion, String projectDirectory, DevSession.Observability observability, String status, DevSession.ServiceStatus runtime, DevSession.ServiceStatus proxy, DevSession.ServiceStatus gateway, DevSession.ServiceStatus idp, DevSession.ServiceStatus app, DevSession.ServiceStatus reload, DevSession.ServiceStatus compile, DevSession.ServiceStatus tests, DevSession.ServiceStatus commands, DevSession.ServiceStatus frontend, DevSession.ServiceStatus mcp, long startedAt, long heartbeatAt, long updatedAt)
extends Record
Machine-readable session snapshot written under
.fluxzero/dev/session.json.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDevSession(String sessionId, long pid, String devServerVersion, String projectDirectory, DevSession.Observability observability, String status, DevSession.ServiceStatus runtime, DevSession.ServiceStatus proxy, DevSession.ServiceStatus gateway, DevSession.ServiceStatus idp, DevSession.ServiceStatus app, DevSession.ServiceStatus reload, DevSession.ServiceStatus compile, DevSession.ServiceStatus tests, DevSession.ServiceStatus commands, DevSession.ServiceStatus frontend, DevSession.ServiceStatus mcp, long startedAt, long heartbeatAt, long updatedAt) Creates an instance of aDevSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapp()Returns the value of theapprecord component.commands()Returns the value of thecommandsrecord component.compile()Returns the value of thecompilerecord component.Returns the value of thedevServerVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.frontend()Returns the value of thefrontendrecord component.gateway()Returns the value of thegatewayrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theheartbeatAtrecord component.idp()Returns the value of theidprecord component.mcp()Returns the value of themcprecord component.Returns the value of theobservabilityrecord component.longpid()Returns the value of thepidrecord component.Returns the value of theprojectDirectoryrecord component.proxy()Returns the value of theproxyrecord component.reload()Returns the value of thereloadrecord component.runtime()Returns the value of theruntimerecord component.Returns the value of thesessionIdrecord component.longReturns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.tests()Returns the value of thetestsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theupdatedAtrecord component.
-
Constructor Details
-
DevSession
public DevSession(String sessionId, long pid, String devServerVersion, String projectDirectory, DevSession.Observability observability, String status, DevSession.ServiceStatus runtime, DevSession.ServiceStatus proxy, DevSession.ServiceStatus gateway, DevSession.ServiceStatus idp, DevSession.ServiceStatus app, DevSession.ServiceStatus reload, DevSession.ServiceStatus compile, DevSession.ServiceStatus tests, DevSession.ServiceStatus commands, DevSession.ServiceStatus frontend, DevSession.ServiceStatus mcp, long startedAt, long heartbeatAt, long updatedAt) Creates an instance of aDevSessionrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentpid- the value for thepidrecord componentdevServerVersion- the value for thedevServerVersionrecord componentprojectDirectory- the value for theprojectDirectoryrecord componentobservability- the value for theobservabilityrecord componentstatus- the value for thestatusrecord componentruntime- the value for theruntimerecord componentproxy- the value for theproxyrecord componentgateway- the value for thegatewayrecord componentidp- the value for theidprecord componentapp- the value for theapprecord componentreload- the value for thereloadrecord componentcompile- the value for thecompilerecord componenttests- the value for thetestsrecord componentcommands- the value for thecommandsrecord componentfrontend- the value for thefrontendrecord componentmcp- the value for themcprecord componentstartedAt- the value for thestartedAtrecord componentheartbeatAt- the value for theheartbeatAtrecord componentupdatedAt- the value for theupdatedAtrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
pid
public long pid()Returns the value of thepidrecord component.- Returns:
- the value of the
pidrecord component
-
devServerVersion
Returns the value of thedevServerVersionrecord component.- Returns:
- the value of the
devServerVersionrecord component
-
projectDirectory
Returns the value of theprojectDirectoryrecord component.- Returns:
- the value of the
projectDirectoryrecord component
-
observability
Returns the value of theobservabilityrecord component.- Returns:
- the value of the
observabilityrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
runtime
Returns the value of theruntimerecord component.- Returns:
- the value of the
runtimerecord component
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-
gateway
Returns the value of thegatewayrecord component.- Returns:
- the value of the
gatewayrecord component
-
idp
Returns the value of theidprecord component.- Returns:
- the value of the
idprecord component
-
app
Returns the value of theapprecord component.- Returns:
- the value of the
apprecord component
-
reload
Returns the value of thereloadrecord component.- Returns:
- the value of the
reloadrecord component
-
compile
Returns the value of thecompilerecord component.- Returns:
- the value of the
compilerecord component
-
tests
Returns the value of thetestsrecord component.- Returns:
- the value of the
testsrecord component
-
commands
Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
frontend
Returns the value of thefrontendrecord component.- Returns:
- the value of the
frontendrecord component
-
mcp
Returns the value of themcprecord component.- Returns:
- the value of the
mcprecord component
-
startedAt
public long startedAt()Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
heartbeatAt
public long heartbeatAt()Returns the value of theheartbeatAtrecord component.- Returns:
- the value of the
heartbeatAtrecord component
-
updatedAt
public long updatedAt()Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-