Interface TenantUpgradeTask
public interface TenantUpgradeTask
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoUpgrade(TenantContext tenant) Performs the actual upgrade of the tenant.default booleanFlag to indicate that this upgrade task should keep running continuously after being upgraded to the target build number Warning: Use this sparingly, since it will result in db load on every check (daily), remove this from a task ASAPShort description of what this task does.longReturn the build number the tenant should be set to if this upgrade succeeds.
-
Method Details
-
getTargetBuildNumber
long getTargetBuildNumber()Return the build number the tenant should be set to if this upgrade succeeds. -
getDescription
String getDescription()Short description of what this task does. Will be logged. -
doUpgrade
Performs the actual upgrade of the tenant. This operation should be idempotent (meaning it can be re-run or restart if aborted half way through).- Parameters:
tenant- the tenant to upgrade!
-
forceRunAfterUpgrade
default boolean forceRunAfterUpgrade()Flag to indicate that this upgrade task should keep running continuously after being upgraded to the target build number Warning: Use this sparingly, since it will result in db load on every check (daily), remove this from a task ASAP- Returns:
- False for the majority of tasks, true if you want this rule to run continuously
-