Watcher common internal object model
Bases: object
Mixin class for lists of objects.
This mixin class can be added as a base class for an object that is implementing a list of objects. It adds a single field of ‘objects’, which is the list store, and behaves like a list itself. It supports serialization of the list of objects automatically.
Bases: object
Base class and object factory.
This forms the base of all objects that can be remoted or instantiated via RPC. Simply defining a class that inherits from this base class will make it remotely instantiatable. Objects should implement the necessary “get” classmethod routines as well as “save” object methods as appropriate.
For backwards-compatibility with dict-based objects.
NOTE(danms): May be removed in the future.
For backwards-compatibility with dict-based objects.
NOTE(danms): May be removed in the future.
Test object to see if attrname is present.
Returns True if the named attribute has a value set, or False if not. Raises AttributeError if attrname is not a valid attribute for this object.
Returns a class from the registry based on a name and version.
Simple base-case hydration.
This calls self._attr_from_primitive() for each item in fields.
Load an additional attribute from the real object.
This should use self._conductor, and cache any data that might be useful for future load operations.
Get canonical object name.
This object name will be used over the wire for remote hydration.
Reset the list of fields that have been changed.
Note that this is NOT “revert to previous values”
Simple base-case dehydration.
This calls self._attr_to_primitive() for each item in fields.
Bases: type
Metaclass that allows tracking of object classes.
Bases: oslo_messaging.serializer.NoOpSerializer
A WatcherObject-aware Serializer.
This implements the Oslo Serializer interface and provides the ability to serialize and deserialize WatcherObject entities. Any service that needs to accept or return WatcherObjects as arguments or result values should pass this to its RpcProxy and RpcDispatcher objects.