Class UpgradeFinalizationRunImpl
java.lang.Object
com.atlassian.confluence.impl.cluster.UpgradeFinalizationRunImpl
- All Implemented Interfaces:
UpgradeFinalizationRun
,Serializable
public class UpgradeFinalizationRunImpl
extends Object
implements UpgradeFinalizationRun, Serializable
Encapsulates Finalization Upgrade task information related to a Zero Downtime Upgrade.
- Since:
- 7.14
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Encapsulates errors related to the running of a FinalizationUpgradeTask
Nested classes/interfaces inherited from interface com.atlassian.confluence.cluster.UpgradeFinalizationRun
UpgradeFinalizationRun.Error
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeFinalizationRunImpl
(long requestTimestamp, @Nullable Long completedTimestamp, boolean clusterWide, List<UpgradeFinalizationRun.Error> errors) -
Method Summary
Modifier and TypeMethodDescriptionwhy we get the errors for finalization i.e.long
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.cluster.UpgradeFinalizationRun
isCompleted, isFailed
-
Constructor Details
-
UpgradeFinalizationRunImpl
public UpgradeFinalizationRunImpl(long requestTimestamp, @Nullable Long completedTimestamp, boolean clusterWide, List<UpgradeFinalizationRun.Error> errors)
-
-
Method Details
-
getRequestTimestamp
public long getRequestTimestamp()- Specified by:
getRequestTimestamp
in interfaceUpgradeFinalizationRun
- Returns:
- timestamp in milliseconds when this finalization run was requested to the cluster
-
getCompletedTimestamp
- Specified by:
getCompletedTimestamp
in interfaceUpgradeFinalizationRun
- Returns:
- timestamp in milliseconds when this finalization run was completed, or null if the run is still in progress
-
getErrors
Description copied from interface:UpgradeFinalizationRun
why we get the errors for finalization i.e. not Johnson- Specified by:
getErrors
in interfaceUpgradeFinalizationRun
- Returns:
- a List of finalization task errors on this node
-
runsClusterWideTasks
public boolean runsClusterWideTasks()- Specified by:
runsClusterWideTasks
in interfaceUpgradeFinalizationRun
- Returns:
- true if this cluster node should run
DatabaseUpgradeTask
s.
-