diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-06-19 17:38:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-06-19 17:38:30 +0000 |
commit | e31b5ceb5592026c23ace2608c0af9f5487d1f07 (patch) | |
tree | baf5801c8a4b3c45231c25f7dd246e9853ac3666 | |
parent | 2204ca4d4bc94efcfb4d402e3c89e1c20b312021 (diff) | |
parent | 7e1631606d642f0def75d684e92f0d3d52501de5 (diff) | |
download | oslo-e31b5ceb5592026c23ace2608c0af9f5487d1f07.tar.gz oslo-e31b5ceb5592026c23ace2608c0af9f5487d1f07.tar.xz oslo-e31b5ceb5592026c23ace2608c0af9f5487d1f07.zip |
Merge "Fix nova.rpc references in comments."
-rw-r--r-- | openstack/common/rpc/__init__.py | 30 | ||||
-rw-r--r-- | openstack/common/rpc/amqp.py | 2 | ||||
-rw-r--r-- | tests/unit/rpc/test_qpid.py | 14 |
3 files changed, 25 insertions, 21 deletions
diff --git a/openstack/common/rpc/__init__.py b/openstack/common/rpc/__init__.py index 95b4dce..473268d 100644 --- a/openstack/common/rpc/__init__.py +++ b/openstack/common/rpc/__init__.py @@ -72,7 +72,7 @@ def create_connection(new=True): implementation is free to return an existing connection from a pool. - :returns: An instance of nova.rpc.common.Connection + :returns: An instance of openstack.common.rpc.common.Connection """ return _get_impl().create_connection(cfg.CONF, new=new) @@ -84,8 +84,9 @@ def call(context, topic, msg, timeout=None): request. :param topic: The topic to send the rpc message to. This correlates to the topic argument of - nova.rpc.common.Connection.create_consumer() and only applies - when the consumer was created with fanout=False. + openstack.common.rpc.common.Connection.create_consumer() + and only applies when the consumer was created with + fanout=False. :param msg: This is a dict in the form { "method" : "method_to_invoke", "args" : dict_of_kwargs } :param timeout: int, number of seconds to use for a response timeout. @@ -93,8 +94,8 @@ def call(context, topic, msg, timeout=None): :returns: A dict from the remote method. - :raises: nova.rpc.common.Timeout if a complete response is not received - before the timeout is reached. + :raises: openstack.common.rpc.common.Timeout if a complete response + is not received before the timeout is reached. """ return _get_impl().call(cfg.CONF, context, topic, msg, timeout) @@ -106,8 +107,9 @@ def cast(context, topic, msg): request. :param topic: The topic to send the rpc message to. This correlates to the topic argument of - nova.rpc.common.Connection.create_consumer() and only applies - when the consumer was created with fanout=False. + openstack.common.rpc.common.Connection.create_consumer() + and only applies when the consumer was created with + fanout=False. :param msg: This is a dict in the form { "method" : "method_to_invoke", "args" : dict_of_kwargs } @@ -126,8 +128,9 @@ def fanout_cast(context, topic, msg): request. :param topic: The topic to send the rpc message to. This correlates to the topic argument of - nova.rpc.common.Connection.create_consumer() and only applies - when the consumer was created with fanout=True. + openstack.common.rpc.common.Connection.create_consumer() + and only applies when the consumer was created with + fanout=True. :param msg: This is a dict in the form { "method" : "method_to_invoke", "args" : dict_of_kwargs } @@ -147,8 +150,9 @@ def multicall(context, topic, msg, timeout=None): request. :param topic: The topic to send the rpc message to. This correlates to the topic argument of - nova.rpc.common.Connection.create_consumer() and only applies - when the consumer was created with fanout=False. + openstack.common.rpc.common.Connection.create_consumer() + and only applies when the consumer was created with + fanout=False. :param msg: This is a dict in the form { "method" : "method_to_invoke", "args" : dict_of_kwargs } :param timeout: int, number of seconds to use for a response timeout. @@ -159,8 +163,8 @@ def multicall(context, topic, msg, timeout=None): returned and X is the Nth value that was returned by the remote method. - :raises: nova.rpc.common.Timeout if a complete response is not received - before the timeout is reached. + :raises: openstack.common.rpc.common.Timeout if a complete response + is not received before the timeout is reached. """ return _get_impl().multicall(cfg.CONF, context, topic, msg, timeout) diff --git a/openstack/common/rpc/amqp.py b/openstack/common/rpc/amqp.py index cc40ff3..b7935c3 100644 --- a/openstack/common/rpc/amqp.py +++ b/openstack/common/rpc/amqp.py @@ -18,7 +18,7 @@ # under the License. """ -Shared code between AMQP based nova.rpc implementations. +Shared code between AMQP based openstack.common.rpc implementations. The code in this module is shared between the rpc implemenations based on AMQP. Specifically, this includes impl_kombu and impl_qpid. impl_carrot also uses diff --git a/tests/unit/rpc/test_qpid.py b/tests/unit/rpc/test_qpid.py index 52cd5c9..7cff645 100644 --- a/tests/unit/rpc/test_qpid.py +++ b/tests/unit/rpc/test_qpid.py @@ -53,13 +53,13 @@ class RpcQpidTestCase(unittest.TestCase): that the right operations happen on them when the various public rpc API calls are exercised. The API calls tested here include: - nova.rpc.create_connection() - nova.rpc.common.Connection.create_consumer() - nova.rpc.common.Connection.close() - nova.rpc.cast() - nova.rpc.fanout_cast() - nova.rpc.call() - nova.rpc.multicall() + openstack.common.rpc.create_connection() + openstack.common.rpc.common.Connection.create_consumer() + openstack.common.rpc.common.Connection.close() + openstack.common.rpc.cast() + openstack.common.rpc.fanout_cast() + openstack.common.rpc.call() + openstack.common.rpc.multicall() """ def setUp(self): |