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 classEncapsulates errors related to the running of a FinalizationUpgradeTaskNested 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.longbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getRequestTimestampin interfaceUpgradeFinalizationRun- Returns:
- timestamp in milliseconds when this finalization run was requested to the cluster
-
getCompletedTimestamp
- Specified by:
getCompletedTimestampin 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:UpgradeFinalizationRunwhy we get the errors for finalization i.e. not Johnson- Specified by:
getErrorsin interfaceUpgradeFinalizationRun- Returns:
- a List of finalization task errors on this node
-
runsClusterWideTasks
public boolean runsClusterWideTasks()- Specified by:
runsClusterWideTasksin interfaceUpgradeFinalizationRun- Returns:
- true if this cluster node should run
DatabaseUpgradeTasks.
-