Example #1
0
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    math_function_talent_1 = MathFunctions(pg_config)
    math_function_talent_2 = MathFunctions(pg_config)
    await asyncio.gather(math_function_talent_1.start(),
                         math_function_talent_2.start())
Example #2
0
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    mapper = RandomMapper(pg_config)
    worker1 = RandomWorker(pg_config)
    worker2 = RandomWorker(pg_config)
    reducer = RandomReducer(pg_config)
    await asyncio.gather(mapper.start(), worker1.start(), worker2.start(),
                         reducer.start())
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    talent = TestSetSDK(pg_config)
    await talent.start()
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    function_provider = FunctionProvider(pg_config)
    await function_provider.start()
Example #5
0
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    test_runner = TestRunner(pg_config)
    await test_runner.start()
Example #6
0
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    charging_station_talent = ChargingStationTalent(pg_config)
    await charging_station_talent.start()
Example #7
0
async def main():
    mqtt_config = MqttProtocolAdapter.create_default_configuration()
    pg_config = ProtocolGateway.create_default_configuration([mqtt_config])

    verify_talent = VerifyTalent(pg_config)
    await verify_talent.start()