コード例 #1
0
def server_start(n):

    queue = 'cinder_cast_api'

    while True:
        try:
            log.info('Starting RPC Call API Server, topic=%s' % queue)
            rbtmq = RabbitmqServer(60)
            rbtmq.rpc_cast_server(queue, cinder_register)
        except Exception, e:
            log.error('RPC Call API Server running error, queue=%s, '
                      'reason=%s' % (queue, e))
        sleep(10)
コード例 #2
0
def server_start(n):

    queue = conf.call_queue
    while True:

        try:
            log.info('Starting RPC Call API Server, topic=%s' % queue)
            rbtmq = RabbitmqServer(60)
            rbtmq.rpc_call_server(queue, rpcapi_register)
        except Exception, e:
            log.warning(
                'RPC Call API Server running error, queue=%s, reason=%s'
                % (queue, e))
        sleep(10)
コード例 #3
0
def server_start(n):

    queue = 'kubernetes_create'

    while True:

        try:
            log.info('Starting RPC Call API Server, topic=%s' % queue)
            rbtmq = RabbitmqServer(60)
            rbtmq.rpc_cast_server(queue, kuber_register)
        except Exception, e:
            log.warning(
                'RPC Call API Server running error, queue=%s, reason=%s' %
                (queue, e))
        sleep(10)