Search in sources :

Example 1 with RegistrationServiceImpl

use of org.eclipse.hono.deviceregistry.jdbc.impl.RegistrationServiceImpl in project hono by eclipse.

the class AmqpServerFactory method registrationService.

/**
 * Creates a Device Registration service instance.
 * <p>
 * This factory method makes sure that each set of event senders
 * is used by a single dedicated service instance only. This is necessary because during start up,
 * the service will implicitly invoke {@link MessagingClientProvider#start()} in order
 * to establish the senders' connection to the messaging infrastructure. For the AMQP 1.0 based senders,
 * this connection needs to be established on the verticle's event loop thread in order to work properly.
 *
 * @return The MongoDB registration service.
 */
private RegistrationService registrationService() {
    final EdgeDeviceAutoProvisioner edgeDeviceAutoProvisioner = new EdgeDeviceAutoProvisioner(vertx, deviceManagementService, eventSenderProvider(), autoProvisionerConfigProperties, tracer);
    final var service = new RegistrationServiceImpl(devicesAdapterStore, schemaCreator);
    service.setEdgeDeviceAutoProvisioner(edgeDeviceAutoProvisioner);
    service.setTenantInformationService(tenantInformationService);
    return service;
}
Also used : RegistrationServiceImpl(org.eclipse.hono.deviceregistry.jdbc.impl.RegistrationServiceImpl) EdgeDeviceAutoProvisioner(org.eclipse.hono.deviceregistry.service.device.EdgeDeviceAutoProvisioner)

Aggregations

RegistrationServiceImpl (org.eclipse.hono.deviceregistry.jdbc.impl.RegistrationServiceImpl)1 EdgeDeviceAutoProvisioner (org.eclipse.hono.deviceregistry.service.device.EdgeDeviceAutoProvisioner)1