Package com.atlassian.confluence.cluster
Class ZduStatus
- java.lang.Object
-
- com.atlassian.confluence.cluster.ZduStatus
-
public class ZduStatus extends Object
POJO for returning ZDU state- Since:
- 7.9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZduStatus.StateThese do not map one to one to ZDU states, they just provide enough information for Confluence to interact with the ZDU Plugin Values of this type are stored in the DB via ZduStatusEntity
-
Constructor Summary
Constructors Constructor Description ZduStatus(ZduStatus.State state, String originalClusterVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZduStatusdisabled()static ZduStatusenabled(String originalClusterVersion)booleanequals(Object o)Optional<String>getOriginalClusterVersion()If we are not in upgrade mode this will be empty()ZduStatus.StategetState()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ZduStatus
public ZduStatus(ZduStatus.State state, String originalClusterVersion)
-
-
Method Detail
-
disabled
public static ZduStatus disabled()
-
getState
public ZduStatus.State getState()
-
getOriginalClusterVersion
public Optional<String> getOriginalClusterVersion()
If we are not in upgrade mode this will be empty()- Returns:
- the version number of the cluster at the time we entered upgrade mode, or empty() if we are not in upgrade mode.
-
-