Package com.ibm.di.api.jmx.mbeans
Class ServerInfo
- java.lang.Object
-
- com.ibm.di.api.jmx.mbeans.BaseAdmin
-
- com.ibm.di.api.jmx.mbeans.ServerInfo
-
- All Implemented Interfaces:
BaseAdminMBean,BaseMBean,ServerInfoMBean
public class ServerInfo extends BaseAdmin implements ServerInfoMBean
This class implements various methods for getting server information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMBEAN_TYPEType of the MBean.
-
Constructor Summary
Constructors Constructor Description ServerInfo(ServerInfo aServerInfo)Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConnectorDescription(java.lang.String aConnectorName)Retrieves the description of a Connector installed on the Server.java.lang.StringgetConnectorVersionInfo(java.lang.String aConnectorName)Retrieves the version of a Connector installed on the Server.java.lang.StringgetFunctionComponentDescription(java.lang.String aFunctionComponentName)Retrieves the description of a Function Component installed on the Server.java.lang.StringgetFunctionComponentVersionInfo(java.lang.String aFunctionComponentName)Retrieves the version of a Function Component installed on the Server.java.lang.StringgetHostName()Returns Server machine host name.java.lang.StringgetId()Reads attribute "Id".java.util.Hashtable[]getInstalledConnectors()Retrieves information for all Connectors installed on the Server.java.lang.String[]getInstalledConnectorsNames()Retrieves the names of all Connectors installed on the Server.java.util.Hashtable[]getInstalledFunctionComponents()Retrieves information for all Function Components installed on the Server.java.lang.String[]getInstalledFunctionComponentsNames()Retrieves the names of all Function Components installed on the Server.java.util.Hashtable[]getInstalledParsers()Retrieves information for all Parsers installed on the Server.java.lang.String[]getInstalledParsersNames()Retrieves the names of all Parsers installed on the Server.java.lang.StringgetIPAddress()Returns Server machine IP address.java.lang.StringgetOperatingSystem()Returns the name of the operating system where the Server is running.java.lang.StringgetParserDescription(java.lang.String aParserName)Retrieves the description of a Parser installed on the Server.java.lang.StringgetParserVersionInfo(java.lang.String aParserName)Retrieves the version of a Parser installed on the Server.java.util.VectorgetPasswordParameterNames(java.lang.String aJavaClassName)Returns password parameters names for specified class.java.util.DategetServerBootTime()Returns the Server boot time.java.lang.StringgetServerID()Returns the server unique identifier.java.lang.StringgetServerVersion()Returns Server version.java.lang.StringgetType()Reads attribute "Type".-
Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin
getCurrentUserId, getKeyPropertyList
-
-
-
-
Field Detail
-
MBEAN_TYPE
public static final java.lang.String MBEAN_TYPE
Type of the MBean.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerInfo
public ServerInfo(ServerInfo aServerInfo)
Class constructor.- Parameters:
aServerInfo-ServerInfo
-
-
Method Detail
-
getType
public java.lang.String getType()
Reads attribute "Type".getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".
-
getId
public java.lang.String getId() throws DIExceptionReads attribute "Id". The "Id" value should be different for different MBeans of the same type.getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".- Specified by:
getIdin interfaceBaseMBean- Returns:
- the Id of this MBean.
- Throws:
DIException- if an error occurs while obtaining MBean's Id.
-
getServerVersion
public java.lang.String getServerVersion() throws DIExceptionReturns Server version.- Specified by:
getServerVersionin interfaceServerInfoMBean- Returns:
- the version of the server.
- Throws:
DIException- if an error occurs while retrieving server's data.
-
getIPAddress
public java.lang.String getIPAddress() throws DIExceptionReturns Server machine IP address.- Specified by:
getIPAddressin interfaceServerInfoMBean- Returns:
- the IP address of the machine where the server is running.
- Throws:
DIException- if an error occurs while retrieving server's data.
-
getHostName
public java.lang.String getHostName() throws DIExceptionReturns Server machine host name.- Specified by:
getHostNamein interfaceServerInfoMBean- Returns:
- the host name of the machine where the server is running.
- Throws:
DIException- if an error occurs while retrieving server's data.
-
getOperatingSystem
public java.lang.String getOperatingSystem() throws DIExceptionReturns the name of the operating system where the Server is running.- Specified by:
getOperatingSystemin interfaceServerInfoMBean- Returns:
- the operating system of the machine where the server is running.
- Throws:
DIException- if an error occurs while retrieving server's data.
-
getServerBootTime
public java.util.Date getServerBootTime() throws DIExceptionReturns the Server boot time.- Specified by:
getServerBootTimein interfaceServerInfoMBean- Returns:
- a
java.util.Datespecifying the date and time the server was started. - Throws:
DIException- if an error occurs while retrieving server's boot time.
-
getServerID
public java.lang.String getServerID() throws DIExceptionReturns the server unique identifier.- Specified by:
getServerIDin interfaceServerInfoMBean- Returns:
- String - the value of the property com.ibm.di.server.id
- Throws:
DIException- if an error occurs while retrieving server's ID.
-
getInstalledConnectors
public java.util.Hashtable[] getInstalledConnectors() throws DIExceptionRetrieves information for all Connectors installed on the Server. For each Connector a Hashtable object is constructed, containing the following elements:- key "Name" - the value is the name of the Connector
- key "Description" - the value is the description of the Connector
- key "Version" - the value is the Connector's version
- Specified by:
getInstalledConnectorsin interfaceServerInfoMBean- Returns:
- a
java.util.Hashtablearray, each of its elements corresponding to a single Connector. - Throws:
DIException- if an error occurs while obtaining installed Connectors' data.
-
getInstalledConnectorsNames
public java.lang.String[] getInstalledConnectorsNames() throws DIExceptionRetrieves the names of all Connectors installed on the Server.- Specified by:
getInstalledConnectorsNamesin interfaceServerInfoMBean- Returns:
- a
Stringarray, each of its elements specifying a Connector name. - Throws:
DIException- if an error occurs while obtaining installed Connectors' data.
-
getConnectorDescription
public java.lang.String getConnectorDescription(java.lang.String aConnectorName) throws DIExceptionRetrieves the description of a Connector installed on the Server.- Specified by:
getConnectorDescriptionin interfaceServerInfoMBean- Parameters:
aConnectorName- the name of the Connector whose description will be retrieved.- Returns:
- the description of the specified Connector.
- Throws:
DIException- if an error occurs while obtaining Connector data.
-
getConnectorVersionInfo
public java.lang.String getConnectorVersionInfo(java.lang.String aConnectorName) throws DIExceptionRetrieves the version of a Connector installed on the Server.- Specified by:
getConnectorVersionInfoin interfaceServerInfoMBean- Parameters:
aConnectorName- the name of the Connector whose version will be retrieved.- Returns:
- the version of the specified Connector.
- Throws:
DIException- if an error occurs while obtaining Connector data.
-
getInstalledParsers
public java.util.Hashtable[] getInstalledParsers() throws DIExceptionRetrieves information for all Parsers installed on the Server. For each Parser a Hashtable object is constructed, containing the following elements:- key "Name" - the value is the name of the Parser
- key "Description" - the value is the description of the Parser
- key "Version" - the value is the Parser's version
- Specified by:
getInstalledParsersin interfaceServerInfoMBean- Returns:
- a
java.util.Hashtablearray, each of its elements corresponding to a single Parser. - Throws:
DIException- if an error occurs while obtaining installed Parsers' data.
-
getInstalledParsersNames
public java.lang.String[] getInstalledParsersNames() throws DIExceptionRetrieves the names of all Parsers installed on the Server.- Specified by:
getInstalledParsersNamesin interfaceServerInfoMBean- Returns:
- a
Stringarray, each of its elements specifying a Parser name. - Throws:
DIException- if an error occurs while obtaining installed Parsers' data.
-
getParserDescription
public java.lang.String getParserDescription(java.lang.String aParserName) throws DIExceptionRetrieves the description of a Parser installed on the Server.- Specified by:
getParserDescriptionin interfaceServerInfoMBean- Parameters:
aParserName- the name of the Parser whose description will be retrieved.- Returns:
- the description of the specified Parser.
- Throws:
DIException- if an error occurs while obtaining Parser data.
-
getParserVersionInfo
public java.lang.String getParserVersionInfo(java.lang.String aParserName) throws DIExceptionRetrieves the version of a Parser installed on the Server.- Specified by:
getParserVersionInfoin interfaceServerInfoMBean- Parameters:
aParserName- the name of the Parser whose version will be retrieved.- Returns:
- the version of the specified Parser.
- Throws:
DIException- if an error occurs while obtaining Parser data.
-
getInstalledFunctionComponents
public java.util.Hashtable[] getInstalledFunctionComponents() throws DIExceptionRetrieves information for all Function Components installed on the Server. For each Function Component a Hashtable object is constructed, containing the following elements:- key "Name" - the name of the Function Component
- key "Description" - the description of the Function Component
- key "Version" - the Function Component's version
- Specified by:
getInstalledFunctionComponentsin interfaceServerInfoMBean- Returns:
- a
java.util.Hashtablearray, each of its elements corresponding to a single Function Component. - Throws:
DIException- if an error occurs while obtaining installed Function Components' data.
-
getInstalledFunctionComponentsNames
public java.lang.String[] getInstalledFunctionComponentsNames() throws DIExceptionRetrieves the names of all Function Components installed on the Server.- Specified by:
getInstalledFunctionComponentsNamesin interfaceServerInfoMBean- Returns:
- a
Stringarray, each of its elements specifying a Function Component's name. - Throws:
DIException- if an error occurs while obtaining installed Function Components' data.
-
getFunctionComponentDescription
public java.lang.String getFunctionComponentDescription(java.lang.String aFunctionComponentName) throws DIExceptionRetrieves the description of a Function Component installed on the Server.- Specified by:
getFunctionComponentDescriptionin interfaceServerInfoMBean- Parameters:
aFunctionComponentName- the name of the Function Component whose description will be retrieved.- Returns:
- the description of the specified Function Component.
- Throws:
DIException- if an error occurs while obtaining Function Component data.
-
getFunctionComponentVersionInfo
public java.lang.String getFunctionComponentVersionInfo(java.lang.String aFunctionComponentName) throws DIExceptionRetrieves the version of a Function Component installed on the Server.- Specified by:
getFunctionComponentVersionInfoin interfaceServerInfoMBean- Parameters:
aFunctionComponentName- the name of the Function Component whose version will be retrieved.- Returns:
- the version of the specified Function Component.
- Throws:
DIException- if an error occurs while obtaining Function Component data.
-
getPasswordParameterNames
public java.util.Vector getPasswordParameterNames(java.lang.String aJavaClassName) throws DIExceptionReturns password parameters names for specified class.- Specified by:
getPasswordParameterNamesin interfaceServerInfoMBean- Parameters:
aJavaClassName- Java class name from which password parameters names will be taken.- Returns:
- Vector object with elements the password parameters names of the given class.
- Throws:
DIException- if an error occurs while retrieving password parameters names.
-
-