Show TOC Start of Content Area

Background documentation Performance Monitors and Their Methods  Locate the document in its SAP Library structure

Availability Monitor

Methods that get runtime data:

boolean getValue(); – returns the current value of the monitor. It is “true” if the resource is available and “false”, if the resource is not available.

Methods that get calculation data:

·        double getAvailability(); – returns the availability of the resource (in percentage) since the server startup

·        public long getTimeOnTrueInMilliseconds(); – returns the interval in milliseconds since the server startup through which the resource is available

·        public long getTimeOnFalseInMilliseconds(); – returns the interval in milliseconds since the server startup through which the resource is not available

Example

ObjectName name8 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Open for clients\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Boolean result8_1 = (Boolean) mbs.invoke(name8, "getValue", null, null);

     

Double result8_2 = (Double) mbs.invoke(name8, "getAvailability", null, null);

    

Long result8_3 = (Long) mbs.invoke(name8, "getTimeOnTrueInMilliseconds", null, null);

    

Long result8_4 = (Long) mbs.invoke(name8, "getTimeOnFalseInMilliseconds", null, null);

 

 

Integer Monitor

Method that returns runtime data:

·        int getValue(); – the current value of this monitor

Methods returning some computation data:

·        int getMaxValue(); – returns the maximum value reached for this monitor since the server startup

·        int getMinValue(); – returns the minimuml value reached for this monitor since the server startup

Example

ObjectName name3 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Currently served clients\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Integer result3_1 = (Integer) mbs.invoke(name3, "getValue", null, null);

Integer result3_2 = (Integer) mbs.invoke(name3, "getMaxValue", null, null);

Integer result3_3 = (Integer) mbs.invoke(name3, "getMinValue", null, null);

 

Long Monitor

Method that returns runtime data:

·        long getValue(); – the current value of this monitor

Methods returning some computation data:

·        long getMaxValue(); – returns the maximum value reached for this monitor since the server startup

·        long getMinValue();– returns the minimum value reached for this monitor since the server startup

Example

ObjectName name4 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Served clients\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Long result4_1 = (Long) mbs.invoke(name4, "getValue", null, null);

Long result4_2 = (Long) mbs.invoke(name4, "getMaxValue", null, null);

Long result4_3 = (Long) mbs.invoke(name4, "getMinValue", null, null);

 

Frequency Monitor

Method that returns runtime data:

·        double getFrequency(); – returns the current frequency

Methods returning some computation data:

·        double getMaxFrequency(); – returns the maximum frequency reached since the server startup

·        double getMinFrequency(); – returns the minimum frequency reached since the server startup

Example

ObjectName name2 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Transaction frequency\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Double result2_1 = (Double) mbs.invoke(name2, "getFrequency", null, null);

Double result2_2 = (Double) mbs.invoke(name2, "getMaxFrequency", null, null);

Double result2_3 = (Double) mbs.invoke(name2, "getMinFrequency", null, null);

 

Quality-Rate Monitor

Methods that return runtime data:

·        long getTotalTries(); – returns the total number of processes since the server startup

·        long getSuccessfulTries(); – returns the number of successful processes since the server startup

Methods returning some computation data:

·        double getMinQualityRate(); – returns the minimum value reached for this monitor since the server startup

·        double getMaxQualityRate(); – returns the maximum value reached for this monitor since the server startup

·        double getCurrentQualityRate(); – returns the current value for this monitor

·        double getAverageQualityRate(); – returns the average value for this monitor since the server startup

Example

ObjectName name7 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Transactions over 10,000 EUR\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Long result7_1 = (Long) mbs.invoke(name7, "getTotalTries", null, null);

    

Long result7_2 = (Long) mbs.invoke(name7, "getSuccessfulTries", null, null);

Double result7_3 = (Double) mbs.invoke(name7, "getMinQualityRate", null, null);

     

Double result7_4 = (Double) mbs.invoke(name7, "getMaxQualityRate", null, null);

     

Double result7_5 = (Double) mbs.invoke(name7, "getCurrentQualityRate", null, null);

     

Double result7_6 = (Double) mbs.invoke(name7, "getAverageQualityRate", null, null);

 

Duration Monitor

Methods that get runtime data:

·        long getTotalNumber(); – returns the total number of processes

·        long getTotalTime(); – returns the total time for these processes

Methods that get computation data:

·        double getCurrentDuration(); – returns the calculated current duration

·        double getAverageDuration(); – gets the calculated average duration

Example

ObjectName name11 = new ObjectName("com.sap.default:name=\"/Applications/Bank Information/General Information/Transaction duration\",j2eeType=SAP_MonitorPerNode,SAP_J2EEClusterNode=\"\",SAP_J2EECluster=\"\"");

Long result11_1 = (Long) mbs.invoke(name11, "getTotalNumber", null, null);

    

Long result11_2 = (Long) mbs.invoke(name11, "getTotalTime", null, null); Double result11_3 = (Double) mbs.invoke(name11, "getCurrentDuration", null, null);

Double result11_4 = (Double) mbs.invoke(name11, "getAverageDuration", null, null);

 

 

 

End of Content Area