org.inspektr.statistics.support
Class InMemoryStatisticManager

java.lang.Object
  extended by org.inspektr.statistics.support.AbstractThreadExecutorBasedStatisticManager
      extended by org.inspektr.statistics.support.InMemoryStatisticManager
All Implemented Interfaces:
StatisticManager, org.springframework.beans.factory.DisposableBean

public final class InMemoryStatisticManager
extends AbstractThreadExecutorBasedStatisticManager

Example StatisticsManager that stores everything in memory.

Note that if this is running long enough, you could run out of memory, as it has no upper bound on the amount of statistics it stores.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Nested Class Summary
protected static class InMemoryStatisticManager.StatisticGatheringTask
           
protected static class InMemoryStatisticManager.StatisticValue
           
 
Constructor Summary
InMemoryStatisticManager()
           
 
Method Summary
protected  java.lang.Runnable newTask(StatisticActionContext statisticActionContext)
           
 
Methods inherited from class org.inspektr.statistics.support.AbstractThreadExecutorBasedStatisticManager
destroy, recalculate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryStatisticManager

public InMemoryStatisticManager()
Method Detail

newTask

protected java.lang.Runnable newTask(StatisticActionContext statisticActionContext)
Specified by:
newTask in class AbstractThreadExecutorBasedStatisticManager


Copyright © 2007-2009. All Rights Reserved.