Class DefaultUpgradeFinalizationManager.RunImpl
- java.lang.Object
- 
- com.atlassian.confluence.upgrade.impl.DefaultUpgradeFinalizationManager.RunImpl
 
- 
- All Implemented Interfaces:
- UpgradeFinalizationManager.Run
 - Enclosing class:
- DefaultUpgradeFinalizationManager
 
 public static class DefaultUpgradeFinalizationManager.RunImpl extends Object implements UpgradeFinalizationManager.Run 
- 
- 
Constructor SummaryConstructors Constructor Description RunImpl(long requestTimestamp)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcompletedTimestamp()Obtains the timestamp when the run was completed.UpgradeExceptiongetException()UpgradeTaskgetLastTask()longgetRequestTimestamp()Obtains the timestamp when the finalization is requested to the cluster.booleanisDatabaseUpgrade()
 
- 
- 
- 
Method Detail- 
getRequestTimestamppublic long getRequestTimestamp() Description copied from interface:UpgradeFinalizationManager.RunObtains the timestamp when the finalization is requested to the cluster. This will return the same value for all the nodes in the cluster for any given cluster request. This is used to filter out stale results from remote nodes (e.g. due to event propagation delay).- Specified by:
- getRequestTimestampin interface- UpgradeFinalizationManager.Run
- Returns:
- timestamp in milliseconds
 
 - 
completedTimestamp@Nullable public Long completedTimestamp() Description copied from interface:UpgradeFinalizationManager.RunObtains the timestamp when the run was completed.- Specified by:
- completedTimestampin interface- UpgradeFinalizationManager.Run
- Returns:
- timestamp in milliseconds, or null if the run is still currently in progress.
 
 - 
isDatabaseUpgradepublic boolean isDatabaseUpgrade() - Specified by:
- isDatabaseUpgradein interface- UpgradeFinalizationManager.Run
- Returns:
- true if the current node is the nominated node to run DatabaseUpgradeTasks on the cluster.
 
 - 
getExceptionpublic UpgradeException getException() - Specified by:
- getExceptionin interface- UpgradeFinalizationManager.Run
- Returns:
- the exception if finalization failed, or null of it completed successfully
 
 - 
getLastTaskpublic UpgradeTask getLastTask() - Specified by:
- getLastTaskin interface- UpgradeFinalizationManager.Run
- Returns:
- the last upgrade-task that got executed (or null if no task got executed)
 
 
- 
 
-