IBM Support

Two useful methods added to MXServer API

Technical Blog Post


Abstract

Two useful methods added to MXServer API

Body

 
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 7.1.1.6 and higher.
 
___________________________________________________________________________________


public
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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11134765