Retrieving IAS Server information

Call the Ias.getServerInfo() method to get the server properties of the IAS Server.

The syntax of the method is:
IasCrawler.getServerInfo()

The method returns a List<Property> object, which contains Property objects with host machine and IAS Server information.

To retrieve information about the IAS Server:

  1. Make sure that you have created a connection to the IAS Server. (An IasCrawler object named crawler is used in this example.)
  2. Use the IasCrawler.getServerInfo() method to return the server information.
    For example:
    List<Property> serverInfo = crawler.getServerInfo();
  3. Call the Property.getKey() and Property.getValue() methods to get the property key-value pairs.
The returned server properties (Property objects) contain the following key-value information:
Property key Property value
eidi.version The version of the IAS Server.
eidi.workspace The path of the IAS Server workspace directory
os.arch The hardware architecture on which the operating system is running (such as amd64), as specified in the IAS Server's JVM.
os.name The operating system of the machine on which the IAS Server is running (such as Windows 2003), as specified in the IAS Server's JVM.
os.version The version of the operating system of the machine on which the IAS Server is running (such as 5.2), as specified in the IAS Server's JVM.

The Ias.getServerInfo() method does not throw an exception if it fails.