Top Description Fields Constructors Methods
org.terracotta.statistics.extended

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

extends AbstractSampledStatistic<T extends Number>
Class Inheritance
Imports
org.terracotta.statistics.ValueStatistic, org.terracotta.statistics.archive.Timestamped, java.util.List, java.util.concurrent.ScheduledExecutorService, .TimeUnit

The Class StatisticImpl.

Field Summary

Modifier and TypeField and Description
private final LatencyImpl<T extends Enum<T>>

Constructor Summary

AccessConstructor and Description
public
SampledStatisticImpl(LatencyImpl<T extends Enum<T>> latency, ValueStatistic<T>
the value
value
,
ScheduledExecutorService
the executor
executor
,
int
the history size
historySize
,
long
the history period
historyPeriod
,
TimeUnit
the history time unit
historyTimeUnit
,
StatisticType type)

Instantiates a new statistic impl.

Method Summary

Modifier and TypeMethod and Description
public boolean
public List<Timestamped<T>>
public List<Timestamped<T>>
history(long
starting point of history in ms
since
)

Overrides org.terracotta.statistics.extended.AbstractSampledStatistic.history.

Implements org.terracotta.statistics.extended.SampledStatistic.history.

History, from a given time in ms
public T
Inherited from org.terracotta.statistics.extended.AbstractSampledStatistic:
setHistorystartSamplingstopSamplingtype

Field Detail

latencyback to summary
private final LatencyImpl<T extends Enum<T>> latency

Constructor Detail

SampledStatisticImplback to summary
public SampledStatisticImpl(LatencyImpl<T extends Enum<T>> latency, ValueStatistic<T> value, ScheduledExecutorService executor, int historySize, long historyPeriod, TimeUnit historyTimeUnit, StatisticType type)

Instantiates a new statistic impl.

Parameters
value:ValueStatistic<T>

the value

executor:ScheduledExecutorService

the executor

historySize:int

the history size

historyPeriod:long

the history period

historyTimeUnit:TimeUnit

the history time unit

Method Detail

activeback to summary
public boolean active()

Implements org.terracotta.statistics.extended.SampledStatistic.active.

Doc from org.terracotta.statistics.extended.SampledStatistic.active.

Active.

Returns:boolean

true, if successful

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

Overrides org.terracotta.statistics.extended.AbstractSampledStatistic.history.

Implements org.terracotta.statistics.extended.SampledStatistic.history.

Doc from org.terracotta.statistics.extended.AbstractSampledStatistic.history.

History.

Returns:List<Timestamped<T>>

Doc from org.terracotta.statistics.extended.SampledStatistic.history.

the list

Annotations
@Override
historyback to summary
public List<Timestamped<T>> history(long since)

Overrides org.terracotta.statistics.extended.AbstractSampledStatistic.history.

Implements org.terracotta.statistics.extended.SampledStatistic.history.

Doc from org.terracotta.statistics.extended.SampledStatistic.history.

History, from a given time in ms

Parameters
since:long

starting point of history in ms

Returns:List<Timestamped<T>>

the list

Annotations
@Override
valueback to summary
public T value()

Overrides org.terracotta.statistics.extended.AbstractSampledStatistic.value.

Implements org.terracotta.statistics.extended.SampledStatistic.value.

Doc from org.terracotta.statistics.extended.AbstractSampledStatistic.value.

Value.

Returns:T

Doc from org.terracotta.statistics.extended.SampledStatistic.value.

the t

Annotations
@Override