aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common/messaging/__init__.py
blob: bd700d9b19f7e58dadedf00be434c03c464040a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# See the License for the specific language governing permissions and
# limitations under the License.

# MQ is statically configured:
#   - MQ service: RabbitMQ
#   - user/password: yardstick/yardstick
#   - host:port: localhost:5672
MQ_USER = 'yardstick'
MQ_PASS = 'yardstick'
MQ_SERVICE = 'rabbit'
SERVER = 'localhost'
PORT = 5672
TRANSPORT_URL = (MQ_SERVICE + '://' + MQ_USER + ':' + MQ_PASS + '@' + SERVER +
                 ':' + str(PORT) + '/')

# RPC server.
RPC_SERVER_EXECUTOR = 'threading'

# Topics.
TOPIC_TG = 'topic_traffic_generator'
TOPIC_RUNNER = 'topic_runner'

# Methods.
# Traffic generator consumers methods. Names must match the methods implemented
# in the consumer endpoint class.
TG_METHOD_STARTED = 'tg_method_started'
TG_METHOD_FINISHED = 'tg_method_finished'
TG_METHOD_ITERATION = 'tg_method_iteration'

# Runner consumers methods. Names must match the methods implemented in the
# consumer endpoint class.
RUNNER_METHOD_START_ITERATION = "runner_method_start_iteration"
RUNNER_METHOD_STOP_ITERATION = "runner_method_stop_iteration"