ehcache

net.sf.ehcache.statistics.extended
Interface ExtendedStatistics.Operation<T extends Enum<T>>

Type Parameters:
T - the generic type
Enclosing interface:
ExtendedStatistics

public static interface ExtendedStatistics.Operation<T extends Enum<T>>

The Interface Operation.


Method Summary
 ExtendedStatistics.Result component(T result)
          Component.
 ExtendedStatistics.Result compound(Set<T> results)
          Compound.
 int getHistorySampleSize()
          Gets the history sample size.
 long getHistorySampleTime(TimeUnit unit)
          Gets the history sample time.
 long getWindowSize(TimeUnit unit)
          Gets the window size.
 boolean isAlwaysOn()
          Checks if is always on.
 ExtendedStatistics.Statistic<Double> ratioOf(Set<T> numerator, Set<T> denomiator)
          Ratio of.
 void setAlwaysOn(boolean enable)
          Sets the always on.
 void setHistory(int samples, long time, TimeUnit unit)
          Sets the history.
 void setWindow(long time, TimeUnit unit)
          Sets the window.
 Class<T> type()
          Type.
 

Method Detail

type

Class<T> type()
Type.

Returns:
the class

component

ExtendedStatistics.Result component(T result)
Component.

Parameters:
result - the result
Returns:
the result

compound

ExtendedStatistics.Result compound(Set<T> results)
Compound.

Parameters:
results - the results
Returns:
the result

ratioOf

ExtendedStatistics.Statistic<Double> ratioOf(Set<T> numerator,
                                             Set<T> denomiator)
Ratio of.

Parameters:
numerator - the numerator
denomiator - the denomiator
Returns:
the statistic

setAlwaysOn

void setAlwaysOn(boolean enable)
Sets the always on.

Parameters:
enable - the new always on

isAlwaysOn

boolean isAlwaysOn()
Checks if is always on.

Returns:
true, if is always on

setWindow

void setWindow(long time,
               TimeUnit unit)
Sets the window.

Parameters:
time - the time
unit - the unit

setHistory

void setHistory(int samples,
                long time,
                TimeUnit unit)
Sets the history.

Parameters:
samples - the samples
time - the time
unit - the unit

getWindowSize

long getWindowSize(TimeUnit unit)
Gets the window size.

Parameters:
unit - the unit
Returns:
the window size

getHistorySampleSize

int getHistorySampleSize()
Gets the history sample size.

Returns:
the history sample size

getHistorySampleTime

long getHistorySampleTime(TimeUnit unit)
Gets the history sample time.

Parameters:
unit - the unit
Returns:
the history sample time

ehcache

Copyright 2001-2016, Terracotta, Inc.