@Override public void onTenantsStarting(TenantsStarting starting) throws Exception { for (Map.Entry<String, AppManifest> tenant : starting.getAddeds().entrySet()) { final String tenantId = tenant.getKey(); final File dataDir = tenantConfig.dataDirMap().get(tenantId); // WebAddress createWebAddressAndPut(tenantId, tenant.getValue(), dataDir); } }
private void initWebAddressMap() throws Exception { for (final Map.Entry<String, AppManifest> tenant : tenantConfig.tenantMap().entrySet()) { final String tenantId = tenant.getKey(); final File dataDir = tenantConfig.dataDirMap().get(tenantId); createWebAddressAndPut(tenantId, tenant.getValue(), dataDir); } log.info( "Initialized WebAddressMap with {} entries: {}", webAddressMap.size(), webAddressMap.keySet()); }