Server Info
You can get various types of information about the IBM® Security Directory Integrator Server itself like the Server version, IP address, operating system, boot time and information about what Connectors, Parsers and Function Components are installed and available on the Server, through the Server API.
It is the ServerInfo object that provides access to this information. You can get the ServerInfo object through the session object:
ServerInfo serverInfo = session.getServerInfo();
You can then get and print out details of the Server environment:
System.out.println("Server IP address: " + serverInfo.getIPAddress());
System.out.println("Server host name: " + serverInfo.getHostName());
System.out.println("Server boot time: " + serverInfo.getServerBootTime());
System.out.println("Server version: " + serverInfo.getServerVersion());
System.out.println("Server operating system: " + serverInfo.getOperatingSystem());
You can also output a list of all Connectors installed and available on the Server:
String[] connectorNames = serverInfo.getInstalledConnectorsNames();
System.out.println("Connectors available on the Server: ");
for (int i=0; i<connectorNames.length; i++) {
System.out.println(connectorNames[i]);
}
You can output more details for each installed Connector including its description and version:
String[] connectorNames = serverInfo.getInstalledConnectorsNames();
for (int i=0; i<connectorNames.length; i++) {
System.out.println("Installed connector: ");
System.out.println(" name: " + connectorNames[i]);
System.out.println(" description: " + serverInfo.getConnectorDescription(connectorNames[i]));
System.out.println(" version: " + serverInfo.getConnectorVersionInfo(connectorNames[i]));
System.out.println();
}
In information for other components can be retrieved in a similar manner – Parsers and Functional Components.