/** * Validate the specified property is positive integer value */ private void validatePositiveInteger(String propertyName) { String value = getInstance().getProperty(propertyName); try { int intValue = Integer.parseInt(value); if (intValue <= 0) { getInstance().removeProperty(propertyName); LOGGER.warn(String.format("The value \"%s\" configured for key \"%s\" " + "is invalid. Ignoring it", value, propertyName)); throw new IllegalArgumentException(); } } catch (NumberFormatException e) { getInstance().removeProperty(propertyName); LOGGER.warn(String.format("The value \"%s\" configured for key \"%s\" " + "is invalid. Ignoring it", value, propertyName)); throw e; } }
CarbonProperties.getInstance().removeProperty(tempLocationKey); if (null != localFolderDeletionService) { localFolderDeletionService.shutdown();