/*
 * $Log: HasStatistics.java,v $
 * Revision 1.3  2008-09-04 12:17:53  europe\L190409
 * added action codes
 *
 * Revision 1.2  2008/08/27 16:23:24  Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
 * added reset option to statisticsdump
 *
 * Revision 1.1  2008/05/14 09:29:33  Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
 * introduction of interface HasStatistics
 *
 */
package nl.nn.adapterframework.util;

/**
 * Interface to be implemented by objects like Pipes or Senders that maintain additional statistics themselves.
 * 
 * @author  Gerrit van Brakel
 * @since   4.9
 * @version Id
 */
public interface HasStatistics {

	public static final int STATISTICS_ACTION_NONE=0;
	public static final int STATISTICS_ACTION_RESET=1;
	public static final int STATISTICS_ACTION_MARK=2;

	public void iterateOverStatistics(StatisticsKeeperIterationHandler hski, Object data, int action);
}

@@ -28,16 +28,161 @@
 ava,v $%0A
+ * Revision 1.4  2009-06-05 07:35:16  L190409%0A * support for adapter level only statistics%0D%0A * added throws clause to iterateOverStatistics()%0A *%0A
  * Revis
@@ -198,12 +198,12 @@
 2008
--09-
+/09/
 04 1
@@ -215,22 +215,60 @@
 53  
-europe%5CL190409
+Gerrit van Brakel %3Cgerrit.van.brakel@ibissource.org%3E
 %0A * 
@@ -602,16 +602,69 @@
 .util;%0A%0A
+import nl.nn.adapterframework.core.SenderException;%0A%0A
 /**%0A * I
@@ -921,66 +921,176 @@
 ION_
-NONE=0;%0A%09public static final int STATISTICS_ACTION_RESET=1
+SUMMARY=0;%0A%09public static final int STATISTICS_ACTION_FULL=1;%0A%09public static final int STATISTICS_ACTION_RESET=2;%0A%09public static final int STATISTICS_ACTION_MARK_MAIN=3
 ;%0A%09p
@@ -1134,18 +1134,23 @@
 ION_MARK
-=2
+_FULL=4
 ;%0A%0A%09publ
@@ -1242,12 +1242,36 @@
  action)
+ throws SenderException 
 ;%0A%7D%0A

support for adapter level only statistics added throws clause to iterateOverStatistics()