luehe 2004/10/21 12:03:46 Modified: catalina/src/share/org/apache/catalina/core StandardWrapper.java mbeans-descriptors.xml Log: Expose execution time of the servlet's service method under JSR 77 compliant name ("ServiceTime") Revision Changes Path 1.52 +14 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardWrapper.java Index: StandardWrapper.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardWrapper.java,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- StandardWrapper.java 7 Oct 2004 18:09:10 -0000 1.51 +++ StandardWrapper.java 21 Oct 2004 19:03:46 -0000 1.52 @@ -1360,6 +1360,19 @@ swValve.setProcessingTime(processingTime); } + /** + * Returns the execution time of the servlet's service method. + * + * This method is identical in functionality to getProcessingTime(), + * except that it exposes the execution time of the servlet's service + * method under the JSR 77 compliant property name. + * + * @return Execution time of the servlet's service method + */ + public long getServiceTime() { + return swValve.getProcessingTime(); + } + public long getMaxTime() { return swValve.getMaxTime(); } 1.38 +6 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml Index: mbeans-descriptors.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- mbeans-descriptors.xml 5 Oct 2004 17:12:50 -0000 1.37 +++ mbeans-descriptors.xml 21 Oct 2004 19:03:46 -0000 1.38 @@ -581,7 +581,12 @@ type="boolean"/> <attribute name="processingTime" - description="Cumulative processing time" + description="Execution time of the servlet's service method" + type="long" + writeable="false" /> + + <attribute name="serviceTime" + description="Execution time of the servlet's service method" type="long" writeable="false" />
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]