| | |
| | | import static javax.security.auth.callback.ConfirmationCallback.YES; |
| | | import static javax.security.auth.callback.TextOutputCallback.*; |
| | | |
| | | import static org.forgerock.util.Utils.joinAsString; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.tools.upgrade.FileManager.copy; |
| | | import static org.opends.server.tools.upgrade.UpgradeUtils.*; |
| | |
| | | import org.forgerock.opendj.ldap.requests.Requests; |
| | | import org.forgerock.opendj.ldap.requests.SearchRequest; |
| | | import org.forgerock.opendj.ldif.EntryReader; |
| | | import org.forgerock.util.Utils; |
| | | import org.opends.server.backends.pluggable.spi.TreeName; |
| | | import org.opends.server.tools.JavaPropertiesTool; |
| | | import org.opends.server.tools.RebuildIndex; |
| | |
| | | final StringBuilder sb = new StringBuilder(); |
| | | sb.append(condition).append(" = ").append(shouldPerformUpgradeTasks).append('\n'); |
| | | sb.append('['); |
| | | Utils.joinAsString(sb, "\n", (Object[]) tasks); |
| | | joinAsString(sb, "\n", (Object[]) tasks); |
| | | sb.append(']'); |
| | | return sb.toString(); |
| | | } |
| | |
| | | { |
| | | if (!isRebuildAllIndexesIsPresent) |
| | | { |
| | | context.notify(INFO_UPGRADE_REBUILD_INDEXES_DECLINED.get(indexNames), TextOutputCallback.WARNING); |
| | | context.notify(INFO_UPGRADE_REBUILD_INDEXES_DECLINED.get(joinAsString(", ", indexNames)), |
| | | TextOutputCallback.WARNING); |
| | | } |
| | | } |
| | | |