[openstack-dev] [oslo.messaging] extending notification MessagingDriver

Boden Russell bodenvmw at gmail.com
Thu Feb 26 12:24:43 UTC 2015


What's the suggested approach for implementing a custom oslo messaging
driver given the existing impl [1] is "private"?

e.g. I want to provide my own notification messaging driver which adds
functionality atop the existing driver [1]. This can obviously be done
by extending the oslo.messaging.notify._impl_messaging.MessagingDriver
and registering the custom impl as a stevedore plugin. e.g.

-----------
from oslo.messaging.notify import _impl_messaging as messaging


class MyMessagingDriver(messaging.MessagingDriver):
# impl below
-----------


This works, but given the private nature of oslo's "_impl_messaging" I'm
likely not following best practices.

Any feedback is appreciated.

Thanks


[1] http://goo.gl/cRGNwJ




More information about the OpenStack-dev mailing list