]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add base support for rpc API versioning.
authorRussell Bryant <rbryant@redhat.com>
Mon, 7 May 2012 18:10:29 +0000 (14:10 -0400)
committerJenkins <jenkins@review.openstack.org>
Wed, 18 Jul 2012 17:27:49 +0000 (17:27 +0000)
commit14a30e0b829a24e21d9c547d2e3fd773b1eab675
tree28a965c51b8196f63e5ac791da044e14c730f6d0
parentc044d3c1f6541b4f7d504e9375eb13efdd36e5a2
Add base support for rpc API versioning.

Part of blueprint versioned-rpc-apis.

This commit includes the base support for versioned RPC APIs.  It
introduces the RpcProxy and RpcDispatcher classes that have common code
for handling versioning on the client and server sides, respectively.

RPC APIs will be converted one at a time using this infrastructure.

Change-Id: I07bd82e9ff60c356123950e466caaffdfce79eba
Reviewed-on: https://review.openstack.org/9901
Reviewed-by: Huang Zhiteng <zhiteng.huang@intel.com>
Reviewed-by: Vish Ishaya <vishvananda@gmail.com>
Approved: John Griffith <john.griffith@solidfire.com>
Tested-by: Jenkins
cinder/manager.py
cinder/rpc/__init__.py
cinder/rpc/amqp.py
cinder/rpc/common.py
cinder/rpc/dispatcher.py [new file with mode: 0644]
cinder/rpc/impl_fake.py
cinder/rpc/proxy.py [new file with mode: 0644]
cinder/service.py
cinder/tests/rpc/common.py
cinder/tests/rpc/test_dispatcher.py [new file with mode: 0644]
cinder/tests/rpc/test_proxy.py [new file with mode: 0644]