Esempio n. 1
0
def main():
    common.configure_logging()
    parser = argparse.ArgumentParser()
    parser.add_argument(
        'source_name', nargs='?', default=common.DEFAULT_SOURCE_NAME)
    args = parser.parse_args()

    def engine_factory():
        return DisplayEngine()

    local_engine.run(engine_factory, args.source_name, input_queue_maxsize=60,
                     port=common.WEBSOCKET_PORT, num_tokens=2)
Esempio n. 2
0
def main():
    def engine_factory():
        return KnexEngine()

    local_engine.run(engine_factory, 'sandwich', 60, 9098, 2)
Esempio n. 3
0
def main():
    local_engine.run(engine_factory=lambda: EmptyEngine(),
                     source_name='empty',
                     input_queue_maxsize=60,
                     port=9099,
                     num_tokens=2)
Esempio n. 4
0
def main():
    def engine_factory():
        return IkeaEngine()

    local_engine.run(engine_factory, 'ikea', 60, 9099, 2)