Start the dynamic configuration manager in dependent commands
This commit is contained in:
parent
b034a088b1
commit
c2317e8493
|
@ -90,6 +90,8 @@ public class CrawlAccountsCommand extends EnvironmentCommand<WhisperServerConfig
|
||||||
configuration.getAppConfig().getConfigurationName(),
|
configuration.getAppConfig().getConfigurationName(),
|
||||||
DynamicConfiguration.class);
|
DynamicConfiguration.class);
|
||||||
|
|
||||||
|
dynamicConfigurationManager.start();
|
||||||
|
|
||||||
final AccountDatabaseCrawler crawler =
|
final AccountDatabaseCrawler crawler =
|
||||||
|
|
||||||
switch ((CrawlType) namespace.get(CRAWL_TYPE)) {
|
switch ((CrawlType) namespace.get(CRAWL_TYPE)) {
|
||||||
|
|
|
@ -53,7 +53,9 @@ public class MessagePersisterServiceCommand extends EnvironmentCommand<WhisperSe
|
||||||
configuration.getAppConfig().getConfigurationName(),
|
configuration.getAppConfig().getConfigurationName(),
|
||||||
DynamicConfiguration.class);
|
DynamicConfiguration.class);
|
||||||
|
|
||||||
MessagePersister messagePersister = new MessagePersister(deps.messagesCache(), deps.messagesManager(),
|
dynamicConfigurationManager.start();
|
||||||
|
|
||||||
|
final MessagePersister messagePersister = new MessagePersister(deps.messagesCache(), deps.messagesManager(),
|
||||||
deps.accountsManager(),
|
deps.accountsManager(),
|
||||||
dynamicConfigurationManager,
|
dynamicConfigurationManager,
|
||||||
Duration.ofMinutes(configuration.getMessageCacheConfiguration().getPersistDelayMinutes()),
|
Duration.ofMinutes(configuration.getMessageCacheConfiguration().getPersistDelayMinutes()),
|
||||||
|
|
|
@ -63,6 +63,8 @@ public class ScheduledApnPushNotificationSenderServiceCommand extends Environmen
|
||||||
configuration.getAppConfig().getConfigurationName(),
|
configuration.getAppConfig().getConfigurationName(),
|
||||||
DynamicConfiguration.class);
|
DynamicConfiguration.class);
|
||||||
|
|
||||||
|
dynamicConfigurationManager.start();
|
||||||
|
|
||||||
final APNSender apnSender = new APNSender(apnSenderExecutor, configuration.getApnConfiguration());
|
final APNSender apnSender = new APNSender(apnSenderExecutor, configuration.getApnConfiguration());
|
||||||
final ApnPushNotificationScheduler apnPushNotificationScheduler = new ApnPushNotificationScheduler(
|
final ApnPushNotificationScheduler apnPushNotificationScheduler = new ApnPushNotificationScheduler(
|
||||||
pushSchedulerCluster, apnSender, deps.accountsManager(), Optional.of(namespace.getInt(WORKER_COUNT)),
|
pushSchedulerCluster, apnSender, deps.accountsManager(), Optional.of(namespace.getInt(WORKER_COUNT)),
|
||||||
|
|
Loading…
Reference in New Issue