|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.statistics.extended.CompoundOperationImpl<T>
T - the generic typepublic class CompoundOperationImpl<T extends Enum<T>>
The Class CompoundOperationImpl.
| Constructor Summary | |
|---|---|
CompoundOperationImpl(OperationStatistic<T> source,
Class<T> type,
long averagePeriod,
TimeUnit averageTimeUnit,
ScheduledExecutorService executor,
int historySize,
long historyPeriod,
TimeUnit historyTimeUnit)
Instantiates a new compound operation impl. |
|
| Method Summary | |
|---|---|
CountOperation<T> |
asCountOperation()
Count operation. |
Result |
component(T result)
Component. |
Result |
compound(Set<T> results)
Compound. |
boolean |
expire(long expiryTime)
Expire. |
int |
getHistorySampleSize()
Get the history sample size. |
long |
getHistorySampleTime(TimeUnit unit)
Get the history sample time. |
long |
getWindowSize(TimeUnit unit)
Gets the window size. |
boolean |
isAlwaysOn()
Checks if is always on. |
SampledStatistic<Double> |
ratioOf(Set<T> numerator,
Set<T> denominator)
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 |
| Constructor Detail |
|---|
public CompoundOperationImpl(OperationStatistic<T> source,
Class<T> type,
long averagePeriod,
TimeUnit averageTimeUnit,
ScheduledExecutorService executor,
int historySize,
long historyPeriod,
TimeUnit historyTimeUnit)
source - the sourcetype - the typeaveragePeriod - the average periodaverageTimeUnit - the average unitexecutor - the executorhistorySize - the history sizehistoryPeriod - the history periodhistoryTimeUnit - the history unit| Method Detail |
|---|
public Class<T> type()
CompoundOperation
type in interface CompoundOperation<T extends Enum<T>>public Result component(T result)
CompoundOperation
component in interface CompoundOperation<T extends Enum<T>>result - the result
public Result compound(Set<T> results)
CompoundOperation
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> denominator)
CompoundOperation
ratioOf in interface CompoundOperation<T extends Enum<T>>numerator - the numeratordenominator - the denomiator
public void setAlwaysOn(boolean enable)
CompoundOperation
setAlwaysOn in interface CompoundOperation<T extends Enum<T>>setAlwaysOn in interface SamplingSupportenable - the new always onpublic boolean isAlwaysOn()
CompoundOperation
isAlwaysOn in interface CompoundOperation<T extends Enum<T>>
public void setWindow(long time,
TimeUnit unit)
CompoundOperation
setWindow in interface CompoundOperation<T extends Enum<T>>time - the timeunit - the unit
public void setHistory(int samples,
long time,
TimeUnit unit)
CompoundOperation
setHistory in interface CompoundOperation<T extends Enum<T>>samples - the samplestime - the timeunit - the unitpublic 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
public boolean expire(long expiryTime)
expire in interface SamplingSupportexpiryTime - the expiry time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||