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 Constructor Description RunImpl(long requestTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Long
completedTimestamp()
Obtains the timestamp when the run was completed.UpgradeException
getException()
UpgradeTask
getLastTask()
long
getRequestTimestamp()
Obtains the timestamp when the finalization is requested to the cluster.boolean
isDatabaseUpgrade()
-
-
-
Method Detail
-
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
public @Nullable Long 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
public UpgradeException getException()
- Specified by:
getException
in interfaceUpgradeFinalizationManager.Run
- Returns:
- the exception if finalization failed, or null of it completed successfully
-
getLastTask
public UpgradeTask getLastTask()
- Specified by:
getLastTask
in interfaceUpgradeFinalizationManager.Run
- Returns:
- the last upgrade-task that got executed (or null if no task got executed)
-
-