예제 #1
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    launcher.launch_service(ops_server.get_service())
    launcher.wait()
예제 #2
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    launcher.launch_service(ops_server.get_service())
    launcher.wait()
예제 #3
0
파일: sahara_api.py 프로젝트: uladz/sahara
def main():
    server.setup_common(possible_topdir, 'API')

    app = server.make_app()

    server.setup_sahara_api('distributed')
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    api_service = server.SaharaWSGIService("sahara-api", app)
    server.launch_api_service(launcher, api_service)
예제 #4
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    server.launch_api_service(
        launcher, server.SaharaWSGIService("sahara-all", app))
예제 #5
0
파일: sahara_all.py 프로젝트: madar010/mad
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    server.launch_api_service(launcher,
                              server.SaharaWSGIService("sahara-all", app))
예제 #6
0
def main():
    server.setup_common(possible_topdir, 'engine')

    server.setup_sahara_engine()
    server.setup_sahara_api('distributed')

    ops_server = ops.OpsServer()
    launcher = server.get_process_launcher()
    service = ops_server.get_service()
    launcher.launch_service(service)
    service.start()
    launcher.wait()
예제 #7
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    LOG.warning("""
 __        __               _
 \ \      / /_ _ _ __ _ __ (_)_ __   __ _
  \ \ /\ / / _` | '__| '_ \| | '_ \ / _` |
   \ V  V / (_| | |  | | | | | | | | (_| |
    \_/\_/ \__,_|_|  |_| |_|_|_| |_|\__, |
                                    |___/

Using the sahara-all entry point is now deprecated. Please use the sahara-api
and sahara-engine entry points instead.
    """)
    server.launch_api_service(launcher,
                              server.SaharaWSGIService("sahara-all", app))
예제 #8
0
def main():
    server.setup_common(possible_topdir, 'all-in-one')

    app = server.make_app()

    server.setup_sahara_api('all-in-one')
    server.setup_sahara_engine()
    server.setup_auth_policy()

    launcher = server.get_process_launcher()
    LOG.warning("""
 __        __               _
 \ \      / /_ _ _ __ _ __ (_)_ __   __ _
  \ \ /\ / / _` | '__| '_ \| | '_ \ / _` |
   \ V  V / (_| | |  | | | | | | | | (_| |
    \_/\_/ \__,_|_|  |_| |_|_|_| |_|\__, |
                                    |___/

Using the sahara-all entry point is now deprecated. Please use the sahara-api
and sahara-engine entry points instead.
    """)
    server.launch_api_service(
        launcher, server.SaharaWSGIService("sahara-all", app))
예제 #9
0
def main():
    app = setup_api()

    launcher = server.get_process_launcher()
    api_service = server.SaharaWSGIService("sahara-api", app)
    server.launch_api_service(launcher, api_service)
예제 #10
0
def main():
    app = setup_api()

    launcher = server.get_process_launcher()
    api_service = server.SaharaWSGIService("sahara-api", app)
    server.launch_api_service(launcher, api_service)