IBM Support

Two useful methods added to MXServer API

Technical Blog Post


Two useful methods added to MXServer API


If you are a developer working with Maximo's MXServer API you may find the following public methods useful. They are exposed via the MXServerRemote interface and can be accessed through a static reference ... MXServer.getMXServer().
These methods are available in TPAE 7.5 and higher and also in fix packs and higher.

ArrayList getMboCounts() throws MXApplicationException
This method returns an ArrayList of MboSet and Mbo counts. The Array list contains a list of String[] in the following format:

String["Server Name","MboSet Name", "MboSet Count", "Mbo Count"]
public String[] getFreeMemory() throws RemoteException
Returns a String array of JVM runtime free memory associated with the current server. The return String[] looks like this:
String [ServerName, total_memory, free_memory, max_memory]

[{"Business Unit":{"code":"BU005","label":"IoT"}, "Product":{"code":"SSLKT6","label":"Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":""}]