Merge "Add network elements as a dict in Kubernetes context"
[yardstick.git] / yardstick / common / messaging / __init__.py
1 # See the License for the specific language governing permissions and
2 # limitations under the License.
3
4 # MQ is statically configured:
5 #   - MQ service: RabbitMQ
6 #   - user/password: yardstick/yardstick
7 #   - host:port: localhost:5672
8 MQ_USER = 'yardstick'
9 MQ_PASS = 'yardstick'
10 MQ_SERVICE = 'rabbit'
11 SERVER = 'localhost'
12 PORT = 5672
13 TRANSPORT_URL = (MQ_SERVICE + '://' + MQ_USER + ':' + MQ_PASS + '@' + SERVER +
14                  ':' + str(PORT) + '/')
15
16 # RPC server.
17 RPC_SERVER_EXECUTOR = 'threading'
18
19 # Topics.
20 TOPIC_TG = 'topic_traffic_generator'
21 TOPIC_RUNNER = 'topic_runner'
22
23 # Methods.
24 # Traffic generator consumers methods. Names must match the methods implemented
25 # in the consumer endpoint class.
26 TG_METHOD_STARTED = 'tg_method_started'
27 TG_METHOD_FINISHED = 'tg_method_finished'
28 TG_METHOD_ITERATION = 'tg_method_iteration'
29
30 # Runner consumers methods. Names must match the methods implemented in the
31 # consumer endpoint class.
32 RUNNER_METHOD_START_ITERATION = "runner_method_start_iteration"
33 RUNNER_METHOD_STOP_ITERATION = "runner_method_stop_iteration"