Search in sources :

Example 1 with CommandRouterServiceImpl

use of org.eclipse.hono.commandrouter.impl.CommandRouterServiceImpl in project hono by eclipse.

the class Application method commandRouterService.

private CommandRouterService commandRouterService() {
    final DeviceRegistrationClient registrationClient = registrationClient();
    final TenantClient tenantClient = tenantClient();
    final CommandTargetMapper commandTargetMapper = CommandTargetMapper.create(registrationClient, deviceConnectionInfo, tracer);
    return new CommandRouterServiceImpl(amqpServerProperties, registrationClient, tenantClient, deviceConnectionInfo, commandConsumerFactoryProvider(tenantClient, commandTargetMapper), adapterInstanceStatusService, tracer);
}
Also used : CommandTargetMapper(org.eclipse.hono.commandrouter.CommandTargetMapper) ProtonBasedDeviceRegistrationClient(org.eclipse.hono.client.registry.amqp.ProtonBasedDeviceRegistrationClient) DeviceRegistrationClient(org.eclipse.hono.client.registry.DeviceRegistrationClient) TenantClient(org.eclipse.hono.client.registry.TenantClient) ProtonBasedTenantClient(org.eclipse.hono.client.registry.amqp.ProtonBasedTenantClient) CommandRouterServiceImpl(org.eclipse.hono.commandrouter.impl.CommandRouterServiceImpl)

Aggregations

DeviceRegistrationClient (org.eclipse.hono.client.registry.DeviceRegistrationClient)1 TenantClient (org.eclipse.hono.client.registry.TenantClient)1 ProtonBasedDeviceRegistrationClient (org.eclipse.hono.client.registry.amqp.ProtonBasedDeviceRegistrationClient)1 ProtonBasedTenantClient (org.eclipse.hono.client.registry.amqp.ProtonBasedTenantClient)1 CommandTargetMapper (org.eclipse.hono.commandrouter.CommandTargetMapper)1 CommandRouterServiceImpl (org.eclipse.hono.commandrouter.impl.CommandRouterServiceImpl)1