|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.counter.SampledStatisticManager
public class SampledStatisticManager
A non-static factory for sampled statistics.
Each instance of the factory creates an independent timer thread that must be shutdown when the statistic manager is no longer needed.
| Constructor Summary | |
|---|---|
SampledStatisticManager()
|
|
| Method Summary | |
|---|---|
SampledStatistic |
createSampler(Statistic statistic,
int period,
int samples,
boolean resetOnSample)
Creates a sampled statistic sampling the supplied Statistic object. |
void |
destroySampler(SampledStatistic statistic)
Destroys a previously created sampled statistic. |
void |
shutdown()
Shutdown this statistic manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampledStatisticManager()
| Method Detail |
|---|
public void shutdown()
This will trigger the shutdown of the sampling thread used by this statistic manager.
public SampledStatistic createSampler(Statistic statistic,
int period,
int samples,
boolean resetOnSample)
Statistic object.
statistic - the statistic value to be sampledperiod - the period in seconds between samplingssamples - the number of samples to store in the historyresetOnSample - @{code true} if the statistic should be reset after sampling
public void destroySampler(SampledStatistic statistic)
This stops all future sampling for this statistic, and releases all internal references to the statistic.
statistic - statistic to be destroyed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||