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 SummaryFields Modifier and Type Field Description static java.lang.StringOBJECT_NAMEA String representing theObjectNamethat this MBean maps to.
 - 
Method SummaryAll 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_NAMEstatic final java.lang.String OBJECT_NAME A String representing theObjectNamethat this MBean maps to.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDefaultHostnamejava.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.
 
 - 
getUserDirectoryjava.lang.String getUserDirectory() Answers with the server's user directory.- Returns:
- The server's user directory.
 
 - 
getInstallDirectoryjava.lang.String getInstallDirectory() Answers with the server's wlp install directory.- Returns:
- The server's wlp install directory.
 
 - 
getNamejava.lang.String getName() Answers with the server's name.- Returns:
- The server's name.
 
 - 
getLibertyVersionjava.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.
 
 - 
getJavaSpecVersionjava.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.
 
 - 
getJavaRuntimeVersionjava.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.
 
 
- 
 
-