Top Description Fields Constructors Methods
net.sf.ehcache.statistics.extended

pack-priv abstract Class AbstractStatistic<T extends java.lang.Number>

extends Object
implements ExtendedStatistics.Statistic<T extends Number>
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic
Known Direct Subclasses
net.sf.ehcache.statistics.extended.LatencyImpl.StatisticImpl, net.sf.ehcache.statistics.extended.SemiExpiringStatistic
Type Parameters
<T>
the generic type
Imports
java.util.List, java.util.concurrent.ScheduledExecutorService, net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic, org.terracotta.statistics.ValueStatistic, org.terracotta.statistics.archive.Timestamped

The Class AbstractStatistic.
Author
cdennis

Field Summary

Modifier and TypeField and Description
private final SampledStatistic<T>
history

The history.

private final ValueStatistic<T>
source

The source.

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractStatistic(ValueStatistic<T> source, ScheduledExecutorService
the executor
executor
,
int
the history size
historySize
,
long
the history nanos
historyNanos
)

Instantiates a new abstract statistic.

Method Summary

Modifier and TypeMethod and Description
public List<Timestamped<T>>
pack-priv final void
setHistory(int
the history size
historySize
,
long
the history nanos
historyNanos
)

Sets the history.

pack-priv final void
startSampling()

Start sampling.

pack-priv final void
stopSampling()

Stop sampling.

public T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

historyback to summary
private final SampledStatistic<T> history

The history.

sourceback to summary
private final ValueStatistic<T> source

The source.

Constructor Detail

AbstractStatisticback to summary
pack-priv AbstractStatistic(ValueStatistic<T> source, ScheduledExecutorService executor, int historySize, long historyNanos)

Instantiates a new abstract statistic.

Parameters
executor:ScheduledExecutorService

the executor

historySize:int

the history size

historyNanos:long

the history nanos

Method Detail

historyback to summary
public List<Timestamped<T>> history()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.history.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.history.

History.

Returns:List<Timestamped<T>>

the list

Annotations
@Override
setHistoryback to summary
pack-priv final void setHistory(int historySize, long historyNanos)

Sets the history.

Parameters
historySize:int

the history size

historyNanos:long

the history nanos

startSamplingback to summary
pack-priv final void startSampling()

Start sampling.

stopSamplingback to summary
pack-priv final void stopSampling()

Stop sampling.

valueback to summary
public T value()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.value.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Statistic.value.

Value.

Returns:T

the t

Annotations
@Override