示例#1
0
def start_bridge(config_path):
    config = DeploymentConfig(config_path)
    dispatcher = RPCDispatcher(config, register_with_bridge=False)
    try:
        dispatcher.start()
    except KeyboardInterrupt:
        dispatcher.stop()
    print "Exiting..."
示例#2
0
def start_service(config_path):
    config = DeploymentConfig(config_path)
    dispatcher = RPCDispatcher(config)
    try:
        dispatcher.start()
    except KeyboardInterrupt:
        dispatcher.stop()
    print "Exiting..."
示例#3
0
def serve_qpid(config_path, register_with_bridge=False, is_bridge_server=False):
     """
     Code for starting the QPID RPC service. 
     """
     config = DeploymentConfig(config_path)
     dispatcher = RPCDispatcher(config, register_with_bridge, is_bridge_server=is_bridge_server)
     
     try:
         dispatcher.start()
     except KeyboardInterrupt:
         dispatcher.stop()
     print "Exiting..."
示例#4
0
def serve_qpid(config_path):
     """
     Code for starting the QPID RPC service. 
     """
     config = DeploymentConfig(config_path)
     server_file = open("/etc/sysconfig/virt-factory/server","r")
     server_host = server_file.read()
     server_file.close()
     dispatcher = RPCDispatcher(config, server_host=server_host, register_with_bridge=False, is_bridge_server=False)
     
     try:
         dispatcher.start()
     except KeyboardInterrupt:
         dispatcher.stop()
     print "Exiting..."