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

pack-priv final Class NullCompoundOperation<T extends java.lang.Enum<T>>

Additional top-level classes in compilation unit: NullOperation, NullLatency, NullStatistic.

extends Object
implements ExtendedStatistics.Operation<T extends Enum<T>>
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation
Type Parameters
<T>
the generic type
Imports
java.util.Collections, .HashMap, .List, .Map, .Set, java.util.concurrent.TimeUnit, net.sf.ehcache.statistics.extended.ExtendedStatistics.Latency, .ExtendedStatistics.Operation, .ExtendedStatistics.Result, .ExtendedStatistics.Statistic, org.terracotta.statistics.archive.Timestamped

The Class NullCompoundOperation.
Author
cdennis

Field Summary

Modifier and TypeField and Description
private static final ExtendedStatistics.Operation<T extends Enum<T>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ExtendedStatistics.Result
public ExtendedStatistics.Result
public int
public long
public long
pack-priv static <
the generic type
T extends Enum<T>
>
ExtendedStatistics.Operation<T>

Returns:

the operation
instance
(Class<T> klazz)

Instance.

public boolean
public ExtendedStatistics.Statistic<Double>
ratioOf(Set<T>
the numerator
numerator
,
Set<T>
the denomiator
denomiator
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.ratioOf.

Ratio of.
public void
setAlwaysOn(boolean
the new always on
enable
)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setAlwaysOn.

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

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setHistory.

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

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setWindow.

Sets the window.
public Class<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final ExtendedStatistics.Operation<T extends Enum<T>> INSTANCE

Constructor Detail

NullCompoundOperationback to summary
private NullCompoundOperation()

Method Detail

componentback to summary
public ExtendedStatistics.Result component(T result)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.component.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.component.

Component.

Parameters
result:T

the result

Returns:ExtendedStatistics.Result

the result

Annotations
@Override
compoundback to summary
public ExtendedStatistics.Result compound(Set<T> results)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.compound.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.compound.

Compound.

Parameters
results:Set<T>

the results

Returns:ExtendedStatistics.Result

the result

Annotations
@Override
getHistorySampleSizeback to summary
public int getHistorySampleSize()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getHistorySampleSize.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getHistorySampleSize.

Gets the history sample size.

Returns:int

the history sample size

Annotations
@Override
getHistorySampleTimeback to summary
public long getHistorySampleTime(TimeUnit unit)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getHistorySampleTime.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getHistorySampleTime.

Gets the history sample time.

Parameters
unit:TimeUnit

the unit

Returns:long

the history sample time

Annotations
@Override
getWindowSizeback to summary
public long getWindowSize(TimeUnit unit)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getWindowSize.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.getWindowSize.

Gets the window size.

Parameters
unit:TimeUnit

the unit

Returns:long

the window size

Annotations
@Override
instanceback to summary
pack-priv static <T extends Enum<T>> ExtendedStatistics.Operation<T> instance(Class<T> klazz)

Instance.

Parameters
<T>
the generic type
Returns:ExtendedStatistics.Operation<T>

the operation

isAlwaysOnback to summary
public boolean isAlwaysOn()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.isAlwaysOn.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.isAlwaysOn.

Checks if is always on.

Returns:boolean

true, if is always on

Annotations
@Override
ratioOfback to summary
public ExtendedStatistics.Statistic<Double> ratioOf(Set<T> numerator, Set<T> denomiator)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.ratioOf.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.ratioOf.

Ratio of.

Parameters
numerator:Set<T>

the numerator

denomiator:Set<T>

the denomiator

Returns:ExtendedStatistics.Statistic<Double>

the statistic

Annotations
@Override
setAlwaysOnback to summary
public void setAlwaysOn(boolean enable)

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setAlwaysOn.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setAlwaysOn.

Sets the always on.

Parameters
enable:boolean

the new always on

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

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setHistory.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setHistory.

Sets the history.

Parameters
samples:int

the samples

time:long

the time

unit:TimeUnit

the unit

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

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setWindow.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.setWindow.

Sets the window.

Parameters
time:long

the time

unit:TimeUnit

the unit

Annotations
@Override
typeback to summary
public Class<T> type()

Implements net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.type.

Doc from net.sf.ehcache.statistics.extended.ExtendedStatistics.Operation.type.

Type.

Returns:Class<T>

the class

Annotations
@Override