if (dataSource.getPool() == null || dataSource.getPool().getCapacity() == null || dataSource.getPool().getCapacity().getDecrementer() == null) { return; setStringIfNotNull(context, dataSource.getPool().getCapacity().getDecrementer().getClassName()); if (pool == null || pool.getCapacity() == null || pool.getCapacity().getDecrementer() == null) return; final Map<String, String> propertiesMap = pool.getCapacity().getDecrementer().getConfigPropertiesMap(); if (propertiesMap == null) { return;
if (dataSource.getXaPool() == null || dataSource.getXaPool().getCapacity() == null || dataSource.getXaPool().getCapacity().getDecrementer() == null) { return; setStringIfNotNull(context, dataSource.getXaPool().getCapacity().getDecrementer().getClassName()); if (pool == null || pool.getCapacity() == null || pool.getCapacity().getDecrementer() == null) return; final Map<String, String> propertiesMap = pool.getCapacity().getDecrementer().getConfigPropertiesMap(); if (propertiesMap == null) { return;
if (pool.getCapacity().getDecrementer() != null) { setAttribute(model, CAPACITY_DECREMENTER_CLASS, pool.getCapacity().getDecrementer().getClassName()); if (pool.getCapacity().getDecrementer().getConfigPropertiesMap() != null) { for (Map.Entry<String, String> config : pool.getCapacity().getDecrementer().getConfigPropertiesMap().entrySet()) { model.get(CAPACITY_DECREMENTER_PROPERTIES.getName(), config.getKey()).set(config.getValue());
if (metadata.getDecrementer() != null && metadata.getDecrementer().getClassName() != null) decrementer = loadDecrementer(metadata.getDecrementer().getClassName()); if (metadata.getDecrementer().getConfigPropertiesMap().size() > 0) Map<String, String> properties = metadata.getDecrementer().getConfigPropertiesMap(); for (Map.Entry<String, String> property : properties.entrySet()) log.invalidCapacityDecrementer(metadata.getDecrementer().getClassName()); if (TimedOutDecrementer.class.getName().equals(metadata.getDecrementer().getClassName()) || TimedOutFIFODecrementer.class.getName().equals(metadata.getDecrementer().getClassName()) || MinPoolSizeDecrementer.class.getName().equals(metadata.getDecrementer().getClassName()) || SizeDecrementer.class.getName().equals(metadata.getDecrementer().getClassName())) decrementer = loadDecrementer(metadata.getDecrementer().getClassName()); if (metadata.getDecrementer().getConfigPropertiesMap().size() > 0) Map<String, String> properties = metadata.getDecrementer().getConfigPropertiesMap(); for (Map.Entry<String, String> property : properties.entrySet()) log.invalidCapacityDecrementer(metadata.getDecrementer().getClassName());
if (dataSource.getPool() == null || dataSource.getPool().getCapacity() == null || dataSource.getPool().getCapacity().getDecrementer() == null) { return; setStringIfNotNull(context, dataSource.getPool().getCapacity().getDecrementer().getClassName()); if (pool == null || pool.getCapacity() == null || pool.getCapacity().getDecrementer() == null) return; final Map<String, String> propertiesMap = pool.getCapacity().getDecrementer().getConfigPropertiesMap(); if (propertiesMap == null) { return;
if (dataSource.getXaPool() == null || dataSource.getXaPool().getCapacity() == null || dataSource.getXaPool().getCapacity().getDecrementer() == null) { return; setStringIfNotNull(context, dataSource.getXaPool().getCapacity().getDecrementer().getClassName()); if (pool == null || pool.getCapacity() == null || pool.getCapacity().getDecrementer() == null) return; final Map<String, String> propertiesMap = pool.getCapacity().getDecrementer().getConfigPropertiesMap(); if (propertiesMap == null) { return;
if (pool.getCapacity().getDecrementer() != null) { setAttribute(model, CAPACITY_DECREMENTER_CLASS, pool.getCapacity().getDecrementer().getClassName()); if (pool.getCapacity().getDecrementer().getConfigPropertiesMap() != null) { for (Map.Entry<String, String> config : pool.getCapacity().getDecrementer().getConfigPropertiesMap().entrySet()) { model.get(CAPACITY_DECREMENTER_PROPERTIES.getName(), config.getKey()).set(config.getValue());