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 class
ZduStatus.State
These 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 ZduStatus
disabled()
static ZduStatus
enabled(String originalClusterVersion)
boolean
equals(Object o)
Optional<String>
getOriginalClusterVersion()
If we are not in upgrade mode this will be empty()ZduStatus.State
getState()
int
hashCode()
String
toString()
-
-
-
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.
-
-