public class ProducerRegistryAPIImpl extends java.lang.Object implements IProducerRegistryAPI, IProducerRegistryListener, IntervalRegistryListener, IIntervalListener
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IStatsProducer> |
getAllProducers()
Returns all registered producers.
|
java.util.List<IStatsProducer> |
getAllProducersByCategory(java.lang.String category)
Returns all registered producers for the given category.
|
java.util.List<IStatsProducer> |
getAllProducersBySubsystem(java.lang.String subsystem)
Returns all registered producers for the given subsystem.
|
java.util.List<java.lang.String> |
getCategories()
Returns the list of available categories.
|
java.util.List<IntervalInfo> |
getPresentIntervals()
Return known configured intervals.
|
IStatsProducer |
getProducer(java.lang.String producerId)
Returns the producer with the given producerId.
|
java.util.List<IStatsProducer> |
getProducers(IProducerFilter... filters)
Returns a filtered list of producers.
|
java.util.List<java.lang.String> |
getSubsystems()
Returns the list of available subsystems.
|
void |
intervalCreated(Interval aInterval)
This method will be called after a new Interval was created.
|
void |
intervalUpdated(Interval aCaller)
This method will be called if the time of the given Interval was elapsed.
|
void |
notifyProducerRegistered(IStatsProducer producer)
Called whenever a new producer is registered.
|
void |
notifyProducerUnregistered(IStatsProducer producer)
Called whenever a producer is unregistered.
|
public java.util.List<IStatsProducer> getAllProducers()
IProducerRegistryAPIgetAllProducers in interface IProducerRegistryAPIpublic java.util.List<IStatsProducer> getAllProducersByCategory(java.lang.String category)
IProducerRegistryAPIgetAllProducersByCategory in interface IProducerRegistryAPIcategory - the category to be selected.public java.util.List<IStatsProducer> getAllProducersBySubsystem(java.lang.String subsystem)
IProducerRegistryAPIgetAllProducersBySubsystem in interface IProducerRegistryAPIsubsystem - the subsystem to be selected.public java.util.List<IntervalInfo> getPresentIntervals()
IProducerRegistryAPIgetPresentIntervals in interface IProducerRegistryAPIpublic void intervalUpdated(Interval aCaller)
IIntervalListenerintervalUpdated in interface IIntervalListeneraCaller - The Interval that calls this methodpublic void intervalCreated(Interval aInterval)
IntervalRegistryListenerintervalCreated in interface IntervalRegistryListeneraInterval - the new Intervalpublic IStatsProducer getProducer(java.lang.String producerId)
IProducerRegistryAPIgetProducer in interface IProducerRegistryAPIpublic java.util.List<IStatsProducer> getProducers(IProducerFilter... filters)
IProducerRegistryAPIgetProducers in interface IProducerRegistryAPIpublic void notifyProducerRegistered(IStatsProducer producer)
IProducerRegistryListenernotifyProducerRegistered in interface IProducerRegistryListenerpublic void notifyProducerUnregistered(IStatsProducer producer)
IProducerRegistryListenernotifyProducerUnregistered in interface IProducerRegistryListenerpublic java.util.List<java.lang.String> getCategories()
IProducerRegistryAPIgetCategories in interface IProducerRegistryAPIpublic java.util.List<java.lang.String> getSubsystems()
IProducerRegistryAPIgetSubsystems in interface IProducerRegistryAPICopyright © 2010-2020 anotheria.net. All Rights Reserved.