| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.statistics.extended.RateImpl<T>
T - the generic typepublic class RateImpl<T extends Enum<T>>
The Class RateStatistic.
| Constructor Summary | |
|---|---|
RateImpl(org.terracotta.statistics.SourceStatistic<org.terracotta.statistics.observer.ChainedOperationObserver<T>> source,
         Set<T> targets,
         long averageNanos,
         ScheduledExecutorService executor,
         int historySize,
         long historyNanos)
Instantiates a new rate statistic.  | 
|
| Method Summary | |
|---|---|
 boolean | 
active()
Active.  | 
protected  boolean | 
expire(long expiry)
Check the statistic for expiry.  | 
 List<org.terracotta.statistics.archive.Timestamped<Double>> | 
history()
History.  | 
protected  void | 
setHistory(int historySize,
           long historyNanos)
Set the sample history parameters.  | 
protected  void | 
setWindow(long averageNanos)
Sets the window.  | 
protected  void | 
start()
Start sampling.  | 
 Double | 
value()
Value.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RateImpl(org.terracotta.statistics.SourceStatistic<org.terracotta.statistics.observer.ChainedOperationObserver<T>> source,
                Set<T> targets,
                long averageNanos,
                ScheduledExecutorService executor,
                int historySize,
                long historyNanos)
targets - the targetsaverageNanos - the average nanosexecutor - the executorhistorySize - the history sizehistoryNanos - the history nanos| Method Detail | 
|---|
public boolean active()
ExtendedStatistics.Statistic
active in interface ExtendedStatistics.Statistic<Double>public Double value()
ExtendedStatistics.Statistic
value in interface ExtendedStatistics.Statistic<Double>public List<org.terracotta.statistics.archive.Timestamped<Double>> history()
ExtendedStatistics.Statistic
history in interface ExtendedStatistics.Statistic<Double>protected void start()
protected void setWindow(long averageNanos)
averageNanos - the new window
protected void setHistory(int historySize,
                          long historyNanos)
historySize - history sample sizehistoryNanos - history sample periodprotected boolean expire(long expiry)
expiry - expiry threshold
true if expired
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||