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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpgradeFinalizationRunImpl.ErrorImpl
Encapsulates errors related to the running of a FinalizationUpgradeTask
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.cluster.UpgradeFinalizationRun
UpgradeFinalizationRun.Error
-
-
Constructor Summary
Constructors Constructor Description UpgradeFinalizationRunImpl(long requestTimestamp, Long completedTimestamp, boolean clusterWide, List<UpgradeFinalizationRun.Error> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCompletedTimestamp()
List<UpgradeFinalizationRun.Error>
getErrors()
why we get the errors for finalization i.e.long
getRequestTimestamp()
boolean
runsClusterWideTasks()
-
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 Detail
-
UpgradeFinalizationRunImpl
public UpgradeFinalizationRunImpl(long requestTimestamp, @Nullable Long completedTimestamp, boolean clusterWide, List<UpgradeFinalizationRun.Error> errors)
-
-
Method Detail
-
getRequestTimestamp
public long getRequestTimestamp()
- Specified by:
getRequestTimestamp
in interfaceUpgradeFinalizationRun
- Returns:
- timestamp in milliseconds when this finalization run was requested to the cluster
-
getCompletedTimestamp
public Long 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
public List<UpgradeFinalizationRun.Error> 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.
-
-