use of com.paascloud.core.generator.IncrementIdGenerator in project paascloud-master by paascloud.
the class RegistryCenterFactory method startup.
/**
* Startup.
*
* @param paascloudProperties the paascloud properties
* @param host the host
* @param app the app
*/
public static void startup(PaascloudProperties paascloudProperties, String host, String app) {
CoordinatorRegistryCenter coordinatorRegistryCenter = createCoordinatorRegistryCenter(paascloudProperties.getZk());
RegisterDto dto = new RegisterDto(app, host, coordinatorRegistryCenter);
Long serviceId = new IncrementIdGenerator(dto).nextId();
IncrementIdGenerator.setServiceId(serviceId);
registerMq(paascloudProperties, host, app);
}
Aggregations