![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <probe/bus/ProbeBusRegistry.hpp>


Public Types | |
| typedef std::list< ProbeBus * > | CreatedProbeBussesContainer |
| typedef wns::container::Registry < std::string, ProbeBus *, wns::container::registry::DeleteOnErase > | ProbeBusRegistryContainer |
Public Member Functions | |
| void | forwardOutput () |
| All known ProbeBusses are triggered to write their results to persistent storage. | |
| ProbeBus * | getMeasurementSource (const std::string &) |
| Retrieves an instance of the PassThroughProbeBus. | |
| ProbeBusRegistry (const wns::pyconfig::View &, wns::logger::Master *) | |
| Constructs the registry and uses a cusom masterLogger. | |
| ProbeBusRegistry (const wns::pyconfig::View &) | |
| Constructs the registry and uses the default MasterLogger. | |
| void | reset () |
| Reset the registry. Primarily needed for testig. | |
| void | spawnProbeBusses (const wns::pyconfig::View &probeBusTrees) |
| Reads the configured measurement sources then spawns and connects all observing ProbeBusses recursively to the MasteProbeBus for that source. | |
| void | startup () |
| Reads the own list of ProbeBus trees and connects these recursively to the ProbeBusses in this registry. | |
| virtual | ~ProbeBusRegistry () |
| Empty (Does NOT delete any ProbeBusses). | |
Private Member Functions | |
| std::string | doToString () const |
| Used to dump the contents of ProbeBusRegistry. | |
| void | spawnObservers (ProbeBus *subject, const wns::pyconfig::View &config) |
| Reads the configured measurement sources then spawns and connects all observing ProbeBusses recursively to the subject for that source. | |
Private Attributes | |
| CreatedProbeBussesContainer | createdProbeBusses_ |
| wns::logger::Logger | logger_ |
| wns::pyconfig::View | pyco_ |
| ProbeBusRegistryContainer | registry_ |
Definition at line 45 of file ProbeBusRegistry.hpp.
| typedef std::list<ProbeBus*> wns::probe::bus::ProbeBusRegistry::CreatedProbeBussesContainer |
Definition at line 52 of file ProbeBusRegistry.hpp.
| typedef wns::container::Registry<std::string, ProbeBus*, wns::container::registry::DeleteOnErase> wns::probe::bus::ProbeBusRegistry::ProbeBusRegistryContainer |
Definition at line 50 of file ProbeBusRegistry.hpp.
| ProbeBusRegistry::ProbeBusRegistry | ( | const wns::pyconfig::View & | pyco | ) |
Definition at line 33 of file ProbeBusRegistry.cpp.
| ProbeBusRegistry::ProbeBusRegistry | ( | const wns::pyconfig::View & | pyco, | |
| wns::logger::Master * | ml | |||
| ) |
Definition at line 40 of file ProbeBusRegistry.cpp.
| ProbeBusRegistry::~ProbeBusRegistry | ( | ) | [virtual] |
Definition at line 47 of file ProbeBusRegistry.cpp.
| std::string ProbeBusRegistry::doToString | ( | ) | const [private, virtual] |
| void ProbeBusRegistry::forwardOutput | ( | ) |
Definition at line 127 of file ProbeBusRegistry.cpp.
| ProbeBus * ProbeBusRegistry::getMeasurementSource | ( | const std::string & | probeBusID | ) |
If the given name is asked for the first time the ProbeBusRegistry creates a PassThroughProbeBus. Subsequent requests for the same MasterProbeBus then always get the same instance. In this way measurement sources and measurement sinks are decoupled.
Definition at line 117 of file ProbeBusRegistry.cpp.
| void ProbeBusRegistry::reset | ( | ) |
Definition at line 53 of file ProbeBusRegistry.cpp.
| void ProbeBusRegistry::spawnObservers | ( | ProbeBus * | subject, | |
| const wns::pyconfig::View & | config | |||
| ) | [private] |
Definition at line 95 of file ProbeBusRegistry.cpp.
| void ProbeBusRegistry::spawnProbeBusses | ( | const wns::pyconfig::View & | probeBusTrees | ) |
Definition at line 80 of file ProbeBusRegistry.cpp.
| void ProbeBusRegistry::startup | ( | ) |
Definition at line 67 of file ProbeBusRegistry.cpp.
Definition at line 129 of file ProbeBusRegistry.hpp.
Definition at line 127 of file ProbeBusRegistry.hpp.
Definition at line 123 of file ProbeBusRegistry.hpp.
Definition at line 125 of file ProbeBusRegistry.hpp.
1.5.5