Skip to content

Helper classes

Doug Schmidt edited this page Sep 15, 2017 · 1 revision

The com.aquaticinformatics.aquarius.sdk namespace includes a few helper classes/methods to make your integration life simpler.

AquariusClient.ServerVersion

The connected client contains a ServerVersion property which describes exact version of the AQTS server to which it connected. See Version Checking for more details

try (AquariusClient client = AquariusClient.createConnectedClient("myserver", "myuser", "mypassword")) {
    System.out.format("Connected to %s (%s)\n", server, client.ServerVersion);
}

The above code would output Connected to myserver (2017.1.96.0) when running the 17.1 GA release of AQTS.

AquariusSystemDetector

TODO: Add an equivalent to the .NET SDK's AquariusSystemDetector class