Package com.vaadin.base.devserver
Class ServerInfo
java.lang.Object
com.vaadin.base.devserver.ServerInfo
- All Implemented Interfaces:
Serializable
Data for a info message to the debug window.
- Since:
- 9.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumKnown container runtime types that can be detected.static final recordThe version of one of the components the debug window reports. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerInfo.ContainerInfoDetects if the application is running inside a container and returns the container runtime type.static StringGets the Hilla version.static StringGets the vendor and version of the JVM the application runs on.static StringGets the architecture, name and version of the operating system.static StringGets the Vaadin platform version.Gets the versions of the components reported to the debug window.
-
Constructor Details
-
ServerInfo
public ServerInfo()Creates a new instance.
-
-
Method Details
-
fetchJavaVersion
Gets the vendor and version of the JVM the application runs on.- Returns:
- the Java version
- Since:
- 24.2.1
-
fetchOperatingSystem
Gets the architecture, name and version of the operating system.- Returns:
- the operating system
- Since:
- 24.2.1
-
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
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
Detects if the application is running inside a container and returns the container runtime type.- Returns:
- the detected container runtime, or
ServerInfo.ContainerInfo.NONEif no container is detected - Since:
- 25.1
-
getVersions
Gets the versions of the components reported to the debug window.- Returns:
- the versions
- Since:
- 24.2.1
-