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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable LongObtains the timestamp when the run was completed.longObtains the timestamp when the finalization is requested to the cluster.boolean
-
Constructor Details
-
RunImpl
public RunImpl(long requestTimestamp)
-
-
Method Details
-
getRequestTimestamp
public 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 interfaceUpgradeFinalizationManager.Run- Returns:
- timestamp in milliseconds
-
completedTimestamp
Description copied from interface:UpgradeFinalizationManager.RunObtains the timestamp when the run was completed.- Specified by:
completedTimestampin interfaceUpgradeFinalizationManager.Run- Returns:
- timestamp in milliseconds, or null if the run is still currently in progress.
-
isDatabaseUpgrade
public boolean isDatabaseUpgrade()- Specified by:
isDatabaseUpgradein interfaceUpgradeFinalizationManager.Run- Returns:
- true if the current node is the nominated node to run
DatabaseUpgradeTasks on the cluster.
-
getException
- Specified by:
getExceptionin interfaceUpgradeFinalizationManager.Run- Returns:
- the exception if finalization failed, or null of it completed successfully
-
getLastTask
- Specified by:
getLastTaskin interfaceUpgradeFinalizationManager.Run- Returns:
- the last upgrade-task that got executed (or null if no task got executed)
-