|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.statistics.MappedOperationStatistic<S,D>
public class MappedOperationStatistic<S extends Enum<S>,D extends Enum<D>>
| Field Summary | |
|---|---|
String |
name
|
Class<D> |
outcomeType
|
Map<String,Object> |
properties
|
Set<String> |
tags
|
| Constructor Summary | |
|---|---|
MappedOperationStatistic(Object tier,
Map<D,Set<S>> translation,
String statisticName,
int tierHeight,
String targetName,
String discriminator)
|
|
| Method Summary | |
|---|---|
void |
addDerivedStatistic(ChainedOperationObserver<? super D> derived)
Register the given Observer to be called by this SourceStatistic |
void |
begin()
Called immediately prior to the operation beginning. |
long |
count(D type)
Return the count of operations with the given type. |
void |
end(D result)
Called immediately after the operation completes with no interesting parameters. |
void |
end(D result,
long... parameters)
Called immediately after the operation completes. |
void |
removeDerivedStatistic(ChainedOperationObserver<? super D> derived)
Remove the given registered Observer from this SourceStatistic. |
ValueStatistic<Long> |
statistic(D result)
Return a ValueStatistic returning the count for the given result. |
ValueStatistic<Long> |
statistic(Set<D> results)
|
long |
sum()
|
long |
sum(Set<D> types)
|
Class<D> |
type()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String name
public final Set<String> tags
public final Map<String,Object> properties
public final Class<D extends Enum<D>> outcomeType
| Constructor Detail |
|---|
public MappedOperationStatistic(Object tier,
Map<D,Set<S>> translation,
String statisticName,
int tierHeight,
String targetName,
String discriminator)
| Method Detail |
|---|
public Class<D> type()
type in interface OperationStatistic<D extends Enum<D>>public ValueStatistic<Long> statistic(D result)
OperationStatisticValueStatistic returning the count for the given result.
statistic in interface OperationStatistic<D extends Enum<D>>result - the result of interest
ValueStatistic instancepublic ValueStatistic<Long> statistic(Set<D> results)
statistic in interface OperationStatistic<D extends Enum<D>>public long count(D type)
OperationStatistic
count in interface OperationStatistic<D extends Enum<D>>type - the result type
public long sum(Set<D> types)
sum in interface OperationStatistic<D extends Enum<D>>public long sum()
sum in interface OperationStatistic<D extends Enum<D>>public void addDerivedStatistic(ChainedOperationObserver<? super D> derived)
SourceStatisticObserver to be called by this SourceStatistic
addDerivedStatistic in interface SourceStatistic<ChainedOperationObserver<? super D extends Enum<D>>>derived - statistic to be registeredpublic void removeDerivedStatistic(ChainedOperationObserver<? super D> derived)
SourceStatisticObserver from this SourceStatistic.
removeDerivedStatistic in interface SourceStatistic<ChainedOperationObserver<? super D extends Enum<D>>>derived - statistic to be removedpublic void begin()
OperationObserver
begin in interface OperationObserver<D extends Enum<D>>public void end(D result)
OperationObserver
end in interface OperationObserver<D extends Enum<D>>result - the operation result
public void end(D result,
long... parameters)
OperationObserver
end in interface OperationObserver<D extends Enum<D>>result - the operation resultparameters - the operation parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||