~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/openstack/common/rpc/common.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        """
109
109
        raise NotImplementedError()
110
110
 
111
 
    def create_consumer(self, conf, topic, proxy, fanout=False):
 
111
    def create_consumer(self, topic, proxy, fanout=False):
112
112
        """Create a consumer on this connection.
113
113
 
114
114
        A consumer is associated with a message queue on the backend message
117
117
        off of the queue will determine which method gets called on the proxy
118
118
        object.
119
119
 
120
 
        :param conf:  An openstack.common.cfg configuration object.
121
120
        :param topic: This is a name associated with what to consume from.
122
121
                      Multiple instances of a service may consume from the same
123
122
                      topic. For example, all instances of nova-compute consume
133
132
        """
134
133
        raise NotImplementedError()
135
134
 
136
 
    def create_worker(self, conf, topic, proxy, pool_name):
 
135
    def create_worker(self, topic, proxy, pool_name):
137
136
        """Create a worker on this connection.
138
137
 
139
138
        A worker is like a regular consumer of messages directed to a
143
142
        be asked to process it. Load is distributed across the members
144
143
        of the pool in round-robin fashion.
145
144
 
146
 
        :param conf:  An openstack.common.cfg configuration object.
147
145
        :param topic: This is a name associated with what to consume from.
148
146
                      Multiple instances of a service may consume from the same
149
147
                      topic.