T - the generic typepublic final class NullCompoundOperation<T extends Enum<T>> extends Object implements CompoundOperation<T>
| Modifier and Type | Method and Description |
|---|---|
CountOperation<T> |
asCountOperation()
Count operation.
|
Result |
component(T result)
Component.
|
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.
|
static <T extends Enum<T>> |
instance(Class<T> klazz)
Instance.
|
boolean |
isAlwaysOn()
Checks if is always on.
|
SampledStatistic<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.
|
public static <T extends Enum<T>> CompoundOperation<T> instance(Class<T> klazz)
T - the generic typepublic Class<T> type()
type in interface CompoundOperation<T extends Enum<T>>public Result component(T result)
component in interface CompoundOperation<T extends Enum<T>>result - the resultpublic Result compound(Set<T> results)
compound in interface CompoundOperation<T extends Enum<T>>results - the resultspublic CountOperation<T> asCountOperation()
CompoundOperationasCountOperation in interface CompoundOperation<T extends Enum<T>>public SampledStatistic<Double> ratioOf(Set<T> numerator, Set<T> denomiator)
ratioOf in interface CompoundOperation<T extends Enum<T>>numerator - the numeratordenomiator - the denomiatorpublic void setAlwaysOn(boolean enable)
setAlwaysOn in interface CompoundOperation<T extends Enum<T>>enable - the new always onpublic void setWindow(long time,
TimeUnit unit)
setWindow in interface CompoundOperation<T extends Enum<T>>time - the timeunit - the unitpublic void setHistory(int samples,
long time,
TimeUnit unit)
setHistory in interface CompoundOperation<T extends Enum<T>>samples - the samplestime - the timeunit - the unitpublic boolean isAlwaysOn()
isAlwaysOn in interface CompoundOperation<T extends Enum<T>>public long getWindowSize(TimeUnit unit)
CompoundOperationgetWindowSize in interface CompoundOperation<T extends Enum<T>>unit - the unitpublic int getHistorySampleSize()
getHistorySampleSize in interface CompoundOperation<T extends Enum<T>>public long getHistorySampleTime(TimeUnit unit)
getHistorySampleTime in interface CompoundOperation<T extends Enum<T>>unit - the unitCopyright © 2016. All rights reserved.