User: schaefera
Date: 01/07/20 13:07:16
Modified: src/main/org/jboss/monitor Monitorable.java
Added: src/main/org/jboss/monitor StatisticsProvider.java
Log:
Added Statistics Gathering for Entity Beans according to the JBoss
Management. The main idea is to add StatisticsProvider Interface to
all components delivering this data.
Revision Changes Path
1.3 +4 -2 jboss/src/main/org/jboss/monitor/Monitorable.java
Index: Monitorable.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/monitor/Monitorable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Monitorable.java 2001/06/18 20:01:27 1.2
+++ Monitorable.java 2001/07/20 20:07:16 1.3
@@ -6,10 +6,12 @@
*/
package org.jboss.monitor;
+import java.util.Map;
+
/**
*
* @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public interface Monitorable
{
@@ -23,6 +25,6 @@
* into the snapshot argument.
*/
public void sample(Object snapshot);
-
+
// Inner classes -------------------------------------------------
}
1.1 jboss/src/main/org/jboss/monitor/StatisticsProvider.java
Index: StatisticsProvider.java
===================================================================
/*
* JBoss, the OpenSource EJB server
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.monitor;
import java.util.Map;
/**
*
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
* @version $Revision: 1.1 $
*/
public interface StatisticsProvider
{
// Constants ----------------------------------------------------
// Public -------------------------------------------------------
/**
* @return Map of Statistic Instances where the key is the
* name of the Statistic instance. The valid values are
* either any subclass of Statistic or an array of Statisc
* instances. Returns null if no statistics is provided.
**/
public Map retrieveStatistic();
/**
* Resets all the statistic values kept in this monitorable instance
**/
public void resetStatistic();
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development