Merger: Fix JacksonConfigManager initialization

This commit is contained in:
Gian Merlino 2013-03-07 22:06:23 -08:00
parent 53c8ba6e75
commit 08bff3f472
1 changed files with 10 additions and 2 deletions

View File

@ -243,14 +243,22 @@ public class IndexerCoordinatorNode extends RegisteringNode
public void init() throws Exception
{
scheduledExecutorFactory = ScheduledExecutors.createFactory(lifecycle);
initializeDB();
final ConfigManagerConfig managerConfig = configFactory.build(ConfigManagerConfig.class);
DbConnector.createConfigTable(dbi, managerConfig.getConfigTable());
JacksonConfigManager configManager = new JacksonConfigManager(new ConfigManager(dbi, managerConfig), jsonMapper);
JacksonConfigManager configManager =
new JacksonConfigManager(
lifecycle.addManagedInstance(
new ConfigManager(
dbi,
managerConfig
)
), jsonMapper
);
initializeEmitter();
initializeMonitors();
initializeDB();
initializeIndexerCoordinatorConfig();
initializeTaskConfig();
initializeS3Service();