コード例 #1
0
def main():
    service.prepare_service()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
コード例 #2
0
def main():
    service.prepare_service()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
コード例 #3
0
ファイル: api.py プロジェクト: 0xffea/cloudkitty
def main():
    service.prepare_service()
    rpc.init()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
コード例 #4
0
ファイル: processor.py プロジェクト: 0xffea/cloudkitty
def main():
    service.prepare_service()
    rpc.init()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
コード例 #5
0
ファイル: processor.py プロジェクト: openstack/cloudkitty
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.CloudKittyServiceManager().run()
コード例 #6
0
ファイル: processor.py プロジェクト: openstack/cloudkitty
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.OrchestratorServiceManager().run()
コード例 #7
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # fonction is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg option are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
コード例 #8
0
ファイル: dbsync.py プロジェクト: jeffrey4l/cloudkitty
def main():
    service.prepare_service()
    CONF.command.func()
コード例 #9
0
def main():
    service.prepare_service()
    CONF.command.func()
コード例 #10
0
ファイル: storage.py プロジェクト: Hopebaytech/cloudkitty
def main():
    service.prepare_service()
    init_storage_backend()
コード例 #11
0
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
コード例 #12
0
def main():
    service.prepare_service()
    init_storage_backend()
コード例 #13
0
ファイル: writer.py プロジェクト: stackhpc/cloudkitty
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)
コード例 #14
0
ファイル: app.py プロジェクト: openstack/cloudkitty
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
コード例 #15
0
ファイル: writer.py プロジェクト: openstack/cloudkitty
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)