/*
 * $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);
}

/*
 * $Log: HasStatistics.java,v $
 * Revision 1.4  2009-06-05 07:35:16  L190409
 * support for adapter level only statistics
 * added throws clause to iterateOverStatistics()
 *
 * Revision 1.3  2008/09/04 12:17:53  Gerrit van Brakel <gerrit.van.brakel@ibissource.org>
 * 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;

import nl.nn.adapterframework.core.SenderException;

/**
 * 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_SUMMARY=0;
	public static final int STATISTICS_ACTION_FULL=1;
	public static final int STATISTICS_ACTION_RESET=2;
	public static final int STATISTICS_ACTION_MARK_MAIN=3;
	public static final int STATISTICS_ACTION_MARK_FULL=4;

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

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