[exo-jcr-commits] exo-jcr SVN: r2366 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/statistics.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed May 12 05:02:25 EDT 2010
Author: nfilotto
Date: 2010-05-12 05:02:25 -0400 (Wed, 12 May 2010)
New Revision: 2366
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/statistics/JCRStatisticsManager.java
Log:
EXOJCR-723: arguments of the methods are now described
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/statistics/JCRStatisticsManager.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/statistics/JCRStatisticsManager.java 2010-05-12 08:54:46 UTC (rev 2365)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/statistics/JCRStatisticsManager.java 2010-05-12 09:02:25 UTC (rev 2366)
@@ -21,6 +21,7 @@
import org.exoplatform.management.ManagementContext;
import org.exoplatform.management.annotations.Managed;
import org.exoplatform.management.annotations.ManagedDescription;
+import org.exoplatform.management.annotations.ManagedName;
import org.exoplatform.management.jmx.annotations.NameTemplate;
import org.exoplatform.management.jmx.annotations.Property;
import org.exoplatform.management.rest.annotations.RESTEndpoint;
@@ -375,7 +376,9 @@
*/
@Managed
@ManagedDescription("The minimum value of the time spent for one call.")
- public static long getMin(String category, String name)
+ public static long getMin(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
return statistics == null ? 0l : statistics.getMin();
@@ -387,7 +390,9 @@
*/
@Managed
@ManagedDescription("The maximum value of the time spent for one call.")
- public static long getMax(String category, String name)
+ public static long getMax(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
return statistics == null ? 0l : statistics.getMax();
@@ -399,7 +404,9 @@
*/
@Managed
@ManagedDescription("The total time spent for all the calls.")
- public static long getTotal(String category, String name)
+ public static long getTotal(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
return statistics == null ? 0l : statistics.getTotal();
@@ -411,7 +418,9 @@
*/
@Managed
@ManagedDescription("The total amount of calls.")
- public static long getTimes(String category, String name)
+ public static long getTimes(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
return statistics == null ? 0l : statistics.getTimes();
@@ -423,7 +432,9 @@
*/
@Managed
@ManagedDescription("The average value of the time spent for one call.")
- public static float getAvg(String category, String name)
+ public static float getAvg(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
return statistics == null ? 0l : statistics.getAvg();
@@ -436,7 +447,9 @@
*/
@Managed
@ManagedDescription("Reset the statistics.")
- public static void reset(String category, String name)
+ public static void reset(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category,
+ @ManagedDescription("The name of the expected method or global for the global value") @ManagedName("statisticsName") String name)
{
Statistics statistics = getStatistics(category, name);
if (statistics != null)
@@ -451,7 +464,8 @@
*/
@Managed
@ManagedDescription("Reset all the statistics.")
- public static void resetAll(String category)
+ public static void resetAll(
+ @ManagedDescription("The name of the category of the statistics") @ManagedName("categoryName") String category)
{
StatisticsContext context = getContext(category);
if (context != null)
More information about the exo-jcr-commits
mailing list