Top Description Methods
org.terracotta.statistics

public Interface SourceStatistic<T extends org.terracotta.statistics.observer.ChainedObserver>

Known Direct Subinterfaces
org.terracotta.statistics.OperationStatistic
Known Direct Implementers
org.terracotta.statistics.AbstractSourceStatistic
Type Parameters
<T>
Supported derived observer type
Imports
org.terracotta.statistics.observer.ChainedObserver

Source statistic implementations support derived statistics.

Derived statistics can be registered and will then receive the relevant observer calls to update their status.

Method Summary

Modifier and TypeMethod and Description
public void
addDerivedStatistic(T
statistic to be registered
derived
)

Register the given Observer to be called by this SourceStatistic

public void
removeDerivedStatistic(T
statistic to be removed
derived
)

Remove the given registered Observer from this SourceStatistic.

Method Detail

addDerivedStatisticback to summary
public void addDerivedStatistic(T derived)

Register the given Observer to be called by this SourceStatistic

Parameters
derived:T

statistic to be registered

removeDerivedStatisticback to summary
public void removeDerivedStatistic(T derived)

Remove the given registered Observer from this SourceStatistic.

Parameters
derived:T

statistic to be removed