fulmine.util.log
Interface IStatistics

All Superinterfaces:
Runnable
All Known Implementing Classes:
Statistics

public interface IStatistics
extends Runnable

A component that maintains statistics for queued items.

Author:
Ramon Servadei

Method Summary
 void intervalFinished(int queueSize, int popped)
          Signals the end of a sampling interval.
 void processEvent(long elapsedTimeMicroSecs)
          Process a new event in the current interval.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

processEvent

void processEvent(long elapsedTimeMicroSecs)
Process a new event in the current interval.

Parameters:
elapsedTimeMicroSecs - the elapsed time of this event on its queue (its latency)

intervalFinished

void intervalFinished(int queueSize,
                      int popped)
Signals the end of a sampling interval. This will execute some form of statistics logging, dependent on the implementation.

Parameters:
queueSize - the queue size at the end of this interval
popped - the number of items popped in this interval
job - the job to execute in addition to any native logging


Copyright © 2007-2009. All Rights Reserved.