Top Description Methods
org.terracotta.statistics.extended

public Interface CompoundOperation<T extends java.lang.Enum<T>>

extends SamplingSupport
Known Direct Implementers
org.terracotta.statistics.extended.CompoundOperationImpl, org.terracotta.statistics.extended.NullCompoundOperation
Type Parameters
<T>
the generic type
Imports
java.util.EnumSet, java.util.concurrent.TimeUnit

The Interface Operation.

Method Summary

Modifier and TypeMethod and Description
public CountOperation<T>

Returns:

the count operation
asCountOperation
()

Count operation.

public Result

Returns:

the result
component
(T
the result
result
)

Component.

public Result

Returns:

the result
compound
(EnumSet<T>
the results
results
)

Compound.

public int

Returns:

the history sample size
getHistorySampleSize
()

Gets the history sample size.

public long

Returns:

the history sample time
getHistorySampleTime
(TimeUnit
the unit
unit
)

Gets the history sample time.

public long

Returns:

the window size
getWindowSize
(TimeUnit
the unit
unit
)

Gets the window size.

public boolean

Returns:

true, if is always on
isAlwaysOn
()

Checks if is always on.

public SampledStatistic<Double>

Returns:

the statistic
ratioOf
(EnumSet<T>
the numerator
numerator
,
EnumSet<T>
the denomiator
denominator
)

Ratio of.

public void
setAlwaysOn(boolean
the new always on
enable
)

Redeclares org.terracotta.statistics.extended.SamplingSupport.setAlwaysOn.

Sets the always on.
public void
setHistory(int
the samples
samples
,
long
the time
time
,
TimeUnit
the unit
unit
)

Sets the history.

public void
setWindow(long
the time
time
,
TimeUnit
the unit
unit
)

Sets the window.

public Class<T>

Returns:

the class
type
()

Type.

Inherited from org.terracotta.statistics.extended.SamplingSupport:
expire

Method Detail

asCountOperationback to summary
public CountOperation<T> asCountOperation()

Count operation.

Returns:CountOperation<T>

the count operation

componentback to summary
public Result component(T result)

Component.

Parameters
result:T

the result

Returns:Result

the result

compoundback to summary
public Result compound(EnumSet<T> results)

Compound.

Parameters
results:EnumSet<T>

the results

Returns:Result

the result

getHistorySampleSizeback to summary
public int getHistorySampleSize()

Gets the history sample size.

Returns:int

the history sample size

getHistorySampleTimeback to summary
public long getHistorySampleTime(TimeUnit unit)

Gets the history sample time.

Parameters
unit:TimeUnit

the unit

Returns:long

the history sample time

getWindowSizeback to summary
public long getWindowSize(TimeUnit unit)

Gets the window size.

Parameters
unit:TimeUnit

the unit

Returns:long

the window size

isAlwaysOnback to summary
public boolean isAlwaysOn()

Checks if is always on.

Returns:boolean

true, if is always on

ratioOfback to summary
public SampledStatistic<Double> ratioOf(EnumSet<T> numerator, EnumSet<T> denominator)

Ratio of.

Parameters
numerator:EnumSet<T>

the numerator

denominator:EnumSet<T>

the denomiator

Returns:SampledStatistic<Double>

the statistic

setAlwaysOnback to summary
public void setAlwaysOn(boolean enable)

Redeclares org.terracotta.statistics.extended.SamplingSupport.setAlwaysOn.

Sets the always on.

Parameters
enable:boolean

the new always on

setHistoryback to summary
public void setHistory(int samples, long time, TimeUnit unit)

Sets the history.

Parameters
samples:int

the samples

time:long

the time

unit:TimeUnit

the unit

setWindowback to summary
public void setWindow(long time, TimeUnit unit)

Sets the window.

Parameters
time:long

the time

unit:TimeUnit

the unit

typeback to summary
public Class<T> type()

Type.

Returns:Class<T>

the class