
Methods that get runtime data:
Example
ObjectName name9 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Bank name\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");
String result9 = (String) mbs.getAttribute(name9, "getText", null, null);
Method that returns runtime data:
Methods that return configuration data:
Example
ObjectName name1 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Bank ranking\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");
String state = (String) mbs.getAttribute(name1, "getState", null, null);
String[] redStates = (String[])mbs.getAttribute(name1, "getRedStates", null, null);
String[] greenStates = (String[]) mbs.getAttribute(name1, "getGreenStates", null, null);
String[] yellowStates = (String[]) mbs.getAttribute(name1, "getYellowStates", null, null);
Methods that return runtime data:
Method that returns configuration data:
Example
ObjectName name6 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Counter desks\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");
Serializable[][] result6_1 = (Serializable[][]) mbs.getAttribute(name6, "getEntries", null, null);
Serializable[] result6_2 = (Serializable[]) mbs.getAttribute(name6, "getHeader", null, null);
Serializable result6_3 = (Serializable) mbs.invoke(name6, "entryAt", new Object []{new Integer(1),new Integer(1)}, new String[] {"int","int"});
Serializable[] result6_4 = (Serializable[]) mbs.invoke(name6, "rowAt", new Object[]{new Integer(1)}, new String[]{"int"});
Methods that get runtime data:
Example
ObjectName name10 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Software version\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");
String[][] result10 = (String[][]) mbs.getAttribute(name10, "getVersionInfo", null, null);
Method that returns runtime data:
Example
ObjectName name5 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Bank information\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");
String[][] result5 = (String[][]) mbs.getAttribute(name5, "getConfigurationParameters", null, null);In the JMX 1.2 specification, it is forbidden to call getters and setters via invoke .
If the property jmx.invoke.getters does not have an empty value, the code that forbids to call getters and setters through invoke is disabled. This means that you use invoke method only for Operations and getAttribute(setAttribute) only for Attributes .