Call the
Cas.getServerInfo() method to get the server properties
of the CAS Server.
The syntax of the method is:
CasCrawler.getServerInfo()
The method returns a
List<Property> object, which contains
Property objects with host machine and CAS Server
information.
To retrieve information about the CAS Server:
Make sure that you have created a connection to the CAS Server. (A
CasCrawlerobject namedcrawleris used in this example.)Use the
CasCrawler.getServerInfo()method to return the server information.For example:
List<Property> serverInfo = crawler.getServerInfo();
Call the
Property.getKey()andProperty.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 |
|---|---|
|
itl.version |
The version of the CAS Server. |
|
itl.workspace |
The path of the CAS Server workspace directory |
|
os.arch |
The hardware architecture on which the operating system is running, as specified in the CAS Server's JVM. |
|
os.name |
The operating system of the machine on which the CAS Server is running, as specified in the CAS Server's JVM. |
|
os.version |
The version of the operating system of the machine on which the CAS Server is running, as specified in the CAS Server's JVM. |
The
Cas.getServerInfo() method does not throw an
exception if it fails.

