public final class AccumulatorRepository<S extends IStats> extends TieableRepository<Accumulator,S>
| Modifier and Type | Method and Description |
|---|---|
protected Accumulator |
create(TieableDefinition def) |
Accumulator |
createAccumulator(TieableDefinition def) |
java.util.List<Accumulator> |
getAccumulators()
Returns configured accumulators.
|
static AccumulatorRepository<? extends IStats> |
getInstance()
Returns the singleton instance of the AccumulatorRepository.
|
void |
notifyProducerRegistered(IStatsProducer<S> producer)
Called whenever a new producer is registered.
|
void |
notifyProducerUnregistered(IStatsProducer<S> producer)
Called whenever a producer is unregistered.
|
static void |
resetForUnitTests()
This method is for unit testing ONLY.
|
protected boolean |
tie(Accumulator acc,
IStatsProducer<? extends IStats> producer) |
addTieable, addToAutoTie, addUntied, attachToListener, cleanup, createTieable, detachFromListener, getById, getByName, getIdsByProducerId, getRegistry, getTieables, removeById, removeTieable, removeTieable, updatepublic static AccumulatorRepository<? extends IStats> getInstance()
protected boolean tie(Accumulator acc, IStatsProducer<? extends IStats> producer)
tie in class TieableRepository<Accumulator,S extends IStats>protected Accumulator create(TieableDefinition def)
create in class TieableRepository<Accumulator,S extends IStats>public java.util.List<Accumulator> getAccumulators()
public Accumulator createAccumulator(TieableDefinition def)
public void notifyProducerUnregistered(IStatsProducer<S> producer)
IProducerRegistryListenernotifyProducerUnregistered in interface IProducerRegistryListener<S extends IStats>notifyProducerUnregistered in class TieableRepository<Accumulator,S extends IStats>public static void resetForUnitTests()
public void notifyProducerRegistered(IStatsProducer<S> producer)
IProducerRegistryListenernotifyProducerRegistered in interface IProducerRegistryListener<S extends IStats>notifyProducerRegistered in class TieableRepository<Accumulator,S extends IStats>Copyright © 2010-2020 anotheria.net. All Rights Reserved.