Package com.ibm.websphere.kernel.server
Interface ServerInfoMBean
-
public interface ServerInfoMBeanThe ServerInfoMBean represents information about the server.The ObjectName for this MBean is "WebSphere:feature=kernel,name=ServerInfo".
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOBJECT_NAMEA String representing theObjectNamethat this MBean maps to.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDefaultHostname()Answers with the server's default hostname.java.lang.StringgetInstallDirectory()Answers with the server's wlp install directory.java.lang.StringgetJavaRuntimeVersion()Answers with the version (service level) of the Java Runtime Environment (JRE), eg 1.8.0_91-b14.java.lang.StringgetJavaSpecVersion()Answers with the Java specification version as provided by the Java Runtime Environment (JRE), eg 1.8.java.lang.StringgetLibertyVersion()Answers with the product runtime version as provided by the properties file in the/lib/versions directory, eg 16.0.0.2. java.lang.StringgetName()Answers with the server's name.java.lang.StringgetUserDirectory()Answers with the server's user directory.
-
-
-
Field Detail
-
OBJECT_NAME
static final java.lang.String OBJECT_NAME
A String representing theObjectNamethat this MBean maps to.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultHostname
java.lang.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
java.lang.String getUserDirectory()
Answers with the server's user directory.- Returns:
- The server's user directory.
-
getInstallDirectory
java.lang.String getInstallDirectory()
Answers with the server's wlp install directory.- Returns:
- The server's wlp install directory.
-
getName
java.lang.String getName()
Answers with the server's name.- Returns:
- The server's name.
-
getLibertyVersion
java.lang.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
java.lang.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
java.lang.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.
-
-