From 75a571bfa9d382b75e664eba3dfd58d17c694e11 Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Tue, 03 Sep 2013 09:27:02 +0000
Subject: [PATCH] CR-2181 OPENDJ-1030 Upgrade : add a task to rebuild ds-sync-hist index when upgrading from 2.5.0-Xpress
---
opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeTask.java | 39 +++++++++++++++++++++++++--------------
1 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeTask.java b/opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeTask.java
index f433ddc..968cacd 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeTask.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/upgrade/UpgradeTask.java
@@ -62,20 +62,6 @@
}
/**
- * Notifies this task that the upgrade has completed. This method will be
- * invoked after all upgrade tasks have completed successfully. Most task
- * implementation will not need to do anything.
- *
- * @param context
- * Context through which tasks can interact with the server
- * installation.
- * @throws ClientException
- * If an error occurred while performing the task.
- */
- void end(UpgradeContext context)
- throws ClientException;
-
- /**
* Performs this upgrade task.
*
* @param context
@@ -126,4 +112,29 @@
*/
void interact(UpgradeContext context)
throws ClientException;
+
+ /**
+ * This method will be invoked after all upgrade tasks have completed
+ * successfully The post upgrade tasks are processes which should be launched
+ * after a successful upgrade.
+ *
+ * @param context
+ * Context through which tasks can interact with the server
+ * installation.
+ * @throws ClientException
+ * If the task cannot proceed.
+ */
+ void postUpgrade(UpgradeContext context) throws ClientException;
+
+ /**
+ * This method will be invoked only if one of the previous post upgrade task
+ * has failed.
+ *
+ * @param context
+ * Context through which tasks can interact with the server
+ * installation.
+ * @throws ClientException
+ * If the task cannot proceed.
+ */
+ void postponePostUpgrade(UpgradeContext context) throws ClientException;
}
--
Gitblit v1.10.0