Record Class IiziGoInstances.Instance

java.lang.Object
java.lang.Record
com.iizix.jetty.IiziGoInstances.Instance
Record Components:
pid - The process ID.
workspace - The workspace directory, as shown to the user.
workspaceId - The workspace ID, stable for the life of the workspace.
httpPort - The HTTP port bound, 0 for none.
httpsPort - The HTTPS port bound, 0 for none.
http3Port - The HTTP/3 UDP port bound, 0 for none.
bind - The bind address, empty for all interfaces.
override - true when the ports came from -Dcom.iizigo.webserver.port (a UI harness).
build - The iiziGo build.
started - When the web server bound, ISO-8601.
Enclosing class:
IiziGoInstances

public static record IiziGoInstances.Instance(long pid, String workspace, String workspaceId, int httpPort, int httpsPort, int http3Port, String bind, boolean override, String build, String started) extends Record
One live iiziGo.
Author:
Christopher Mindus
  • Constructor Details

    • Instance

      public Instance(long pid, String workspace, String workspaceId, int httpPort, int httpsPort, int http3Port, String bind, boolean override, String build, String started)
      Creates an instance of a Instance record class.
      Parameters:
      pid - the value for the pid record component
      workspace - the value for the workspace record component
      workspaceId - the value for the workspaceId record component
      httpPort - the value for the httpPort record component
      httpsPort - the value for the httpsPort record component
      http3Port - the value for the http3Port record component
      bind - the value for the bind record component
      override - the value for the override record component
      build - the value for the build record component
      started - the value for the started record component
  • Method Details

    • describe

      public String describe()
      Describes the instance for a message: e.g. iiziGo (workspace 'C:\ws\A', PID 1234).
      Returns:
      The text.
    • 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.
    • pid

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

      public String workspace()
      Returns the value of the workspace record component.
      Returns:
      the value of the workspace record component
    • workspaceId

      public String workspaceId()
      Returns the value of the workspaceId record component.
      Returns:
      the value of the workspaceId record component
    • httpPort

      public int httpPort()
      Returns the value of the httpPort record component.
      Returns:
      the value of the httpPort record component
    • httpsPort

      public int httpsPort()
      Returns the value of the httpsPort record component.
      Returns:
      the value of the httpsPort record component
    • http3Port

      public int http3Port()
      Returns the value of the http3Port record component.
      Returns:
      the value of the http3Port record component
    • bind

      public String bind()
      Returns the value of the bind record component.
      Returns:
      the value of the bind record component
    • override

      public boolean override()
      Returns the value of the override record component.
      Returns:
      the value of the override record component
    • build

      public String build()
      Returns the value of the build record component.
      Returns:
      the value of the build record component
    • started

      public String started()
      Returns the value of the started record component.
      Returns:
      the value of the started record component