Class ServerInfo

java.lang.Object
com.vaadin.base.devserver.ServerInfo
All Implemented Interfaces:
Serializable

public class ServerInfo extends Object implements Serializable
Data for a info message to the debug window.
Since:
9.0
See Also:
  • Constructor Details

    • ServerInfo

      public ServerInfo()
      Creates a new instance.
  • Method Details

    • fetchJavaVersion

      public static String fetchJavaVersion()
      Gets the vendor and version of the JVM the application runs on.
      Returns:
      the Java version
      Since:
      24.2.1
    • fetchOperatingSystem

      public static String fetchOperatingSystem()
      Gets the architecture, name and version of the operating system.
      Returns:
      the operating system
      Since:
      24.2.1
    • fetchVaadinVersion

      public static String fetchVaadinVersion()
      Gets the Vaadin platform version.
      Returns:
      the version, "-" if the platform is not on the classpath and "?" if it is but the version is unknown
      Since:
      24.2.1
    • fetchHillaVersion

      public static String fetchHillaVersion()
      Gets the Hilla version.
      Returns:
      the version, "-" if Hilla is not on the classpath and "?" if it is but the version is unknown
      Since:
      24.2.1
    • fetchContainerInfo

      public static ServerInfo.ContainerInfo fetchContainerInfo()
      Detects if the application is running inside a container and returns the container runtime type.
      Returns:
      the detected container runtime, or ServerInfo.ContainerInfo.NONE if no container is detected
      Since:
      25.1
    • getVersions

      public List<ServerInfo.NameAndVersion> getVersions()
      Gets the versions of the components reported to the debug window.
      Returns:
      the versions
      Since:
      24.2.1