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