040f403e7f
This improves the usage of the component registry in various ways: 1. It adds a tree cache to the registry. The cache is eventual consistent, which should be sufficient for most use cases like calculating stats in the scheduler and getting a list of components without the need to ask ZooKeeper every time for the list of components. 2. Components can now be used as classes rather than dictionaries, which makes using and updating them much easier and nicer. 3. Components can be used without a registry. This makes registering components easier and you only need to instantiate a registry when you need the registry itself (e.g. in the scheduler). With that change the registry itself is not used anywhere in the production code because it's not required at this point. I will add this in the next commit. Change-Id: Ia8efba26114119eecffb9a89264083e4b8a80de0 |
||
---|---|---|
.. | ||
__init__.py | ||
handler.py |