| | |
| | | public void perform(final UpgradeContext context) throws ClientException |
| | | { |
| | | final LocalizableMessage msg = INFO_UPGRADE_TASK_REPLACE_SCHEMA_FILE.get(fileName); |
| | | logger.debug(LocalizableMessage.raw(msg.toString())); |
| | | logger.debug(msg); |
| | | |
| | | final ProgressNotificationCallback pnc = |
| | | new ProgressNotificationCallback(0, msg, 0); |
| | |
| | | if (oldSnmpConfig.exists()) |
| | | { |
| | | context.notifyProgress(pnc.setProgress(20)); |
| | | logger.debug(LocalizableMessage.raw(summary.toString())); |
| | | logger.debug(summary); |
| | | |
| | | final File snmpConfig = |
| | | new File(UpgradeUtils.configSnmpSecurityDirectory, |
| | |
| | | } |
| | | if (ldif != null) |
| | | { |
| | | logger.debug(LocalizableMessage.raw(Arrays.asList(ldif).toString())); |
| | | logger.debug(LocalizableMessage.raw(Arrays.toString(ldif))); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | countErrors++; |
| | | context.notifyProgress(pnc.setProgress(-100)); |
| | | logger.error(LocalizableMessage.raw(message.toString())); |
| | | logger.error(message); |
| | | if (!context.isIgnoreErrorsMode()) |
| | | { |
| | | throw new ClientException(EXIT_CODE_ERROR, message); |