|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.statistics.extended.NullCompoundOperation<T>
T - the generic typepublic final class NullCompoundOperation<T extends Enum<T>>
The Class NullCompoundOperation.
| Method Summary | ||
|---|---|---|
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
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T extends Enum<T>> CompoundOperation<T> instance(Class<T> klazz)
T - the generic type
public 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 result
public Result compound(Set<T> results)
compound in interface CompoundOperation<T extends Enum<T>>results - the results
public CountOperation<T> asCountOperation()
CompoundOperation
asCountOperation 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 denomiator
public void setAlwaysOn(boolean enable)
setAlwaysOn in interface CompoundOperation<T extends Enum<T>>enable - the new always on
public void setWindow(long time,
TimeUnit unit)
setWindow in interface CompoundOperation<T extends Enum<T>>time - the timeunit - the unit
public 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)
CompoundOperation
getWindowSize in interface CompoundOperation<T extends Enum<T>>unit - the unit
public 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 unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||