Package com.ibm.websphere.kernel.server
Interface ServerInfoMBean
public interface ServerInfoMBean
The ServerInfoMBean represents information about the server.
The ObjectName for this MBean is "WebSphere:feature=kernel,name=ServerInfo".
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A String representing theObjectName
that this MBean maps to. -
Method Summary
Modifier and TypeMethodDescriptionAnswers with the server's default hostname.Answers with the server's wlp install directory.Answers with the version (service level) of the Java Runtime Environment (JRE), eg 1.8.0_91-b14.Answers with the Java specification version as provided by the Java Runtime Environment (JRE), eg 1.8.Answers with the product runtime version as provided by the properties file in the/lib/versions directory, eg 16.0.0.2. getName()
Answers with the server's name.Answers with the server's user directory.
-
Field Details
-
OBJECT_NAME
A String representing theObjectName
that this MBean maps to.- See Also:
-
-
Method Details
-
getDefaultHostname
String getDefaultHostname()Answers with the server's default hostname.The default hostname is specified by the variable ${defaultHostName}. The value of the hostname is always returned in lower case.
For example, if defaultHostName is defined in the server.xml: <variable name="defaultHostName" value="myHost"/> The return value would be 'myhost'.
- Returns:
- The server's default hostname, in lower case.
-
getUserDirectory
String getUserDirectory()Answers with the server's user directory.- Returns:
- The server's user directory.
-
getInstallDirectory
String getInstallDirectory()Answers with the server's wlp install directory.- Returns:
- The server's wlp install directory.
-
getName
String getName()Answers with the server's name.- Returns:
- The server's name.
-
getLibertyVersion
String getLibertyVersion()Answers with the product runtime version as provided by the properties file in the/lib/versions directory, eg 16.0.0.2. - Returns:
- The runtime version.
-
getJavaSpecVersion
String getJavaSpecVersion()Answers with the Java specification version as provided by the Java Runtime Environment (JRE), eg 1.8.- Returns:
- The Java specification version.
-
getJavaRuntimeVersion
String getJavaRuntimeVersion()Answers with the version (service level) of the Java Runtime Environment (JRE), eg 1.8.0_91-b14.- Returns:
- The service level of the JRE.
-