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, Map<String, DevSession.ServiceStatus> services, DevSession.ServiceStatus mcp, long startedAt, long heartbeatAt, long updatedAt) extends Record
Machine-readable session snapshot written under .fluxzero/dev/session.json.
  • Constructor Details

  • Method Details

    • 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.
    • sessionId

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

      public long pid()
      Returns the value of the pid record component.
      Returns:
      the value of the pid record component
    • devServerVersion

      public String devServerVersion()
      Returns the value of the devServerVersion record component.
      Returns:
      the value of the devServerVersion record component
    • projectDirectory

      public String projectDirectory()
      Returns the value of the projectDirectory record component.
      Returns:
      the value of the projectDirectory record component
    • observability

      public DevSession.Observability observability()
      Returns the value of the observability record component.
      Returns:
      the value of the observability record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • runtime

      public DevSession.ServiceStatus runtime()
      Returns the value of the runtime record component.
      Returns:
      the value of the runtime record component
    • proxy

      public DevSession.ServiceStatus proxy()
      Returns the value of the proxy record component.
      Returns:
      the value of the proxy record component
    • gateway

      public DevSession.ServiceStatus gateway()
      Returns the value of the gateway record component.
      Returns:
      the value of the gateway record component
    • idp

      Returns the value of the idp record component.
      Returns:
      the value of the idp record component
    • app

      Returns the value of the app record component.
      Returns:
      the value of the app record component
    • reload

      public DevSession.ServiceStatus reload()
      Returns the value of the reload record component.
      Returns:
      the value of the reload record component
    • compile

      public DevSession.ServiceStatus compile()
      Returns the value of the compile record component.
      Returns:
      the value of the compile record component
    • tests

      public DevSession.ServiceStatus tests()
      Returns the value of the tests record component.
      Returns:
      the value of the tests record component
    • commands

      public DevSession.ServiceStatus commands()
      Returns the value of the commands record component.
      Returns:
      the value of the commands record component
    • frontend

      public DevSession.ServiceStatus frontend()
      Returns the value of the frontend record component.
      Returns:
      the value of the frontend record component
    • services

      public Map<String, DevSession.ServiceStatus> services()
      Returns the value of the services record component.
      Returns:
      the value of the services record component
    • mcp

      Returns the value of the mcp record component.
      Returns:
      the value of the mcp record component
    • startedAt

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

      public long heartbeatAt()
      Returns the value of the heartbeatAt record component.
      Returns:
      the value of the heartbeatAt record component
    • updatedAt

      public long updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component