Enum SplitIndexPhase
- java.lang.Object
-
- java.lang.Enum<SplitIndexPhase>
-
- com.atlassian.confluence.upgrade.upgradetask.splitindex.SplitIndexPhase
-
- All Implemented Interfaces:
Serializable
,Comparable<SplitIndexPhase>
public enum SplitIndexPhase extends Enum<SplitIndexPhase>
Determines the phase we're in. The entire process is 1) create a /changes folder in the current index folder 2) copy all index files into that folder, leave directories behind 3) purge all content from the changes index 4) purge all changes from the content index 5) done or 6) aborted- Since:
- 7.9.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
COPY_FILES
CREATE_CHANGE_FOLDER
DONE
PURGE_CHANGES_FROM_CONTENT
PURGE_CONTENT_FROM_CHANGES
REMOVE_OLD_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SplitIndexPhase
fromId(String id)
String
getDescription()
String
getId()
String
toString()
static SplitIndexPhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static SplitIndexPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_CHANGE_FOLDER
public static final SplitIndexPhase CREATE_CHANGE_FOLDER
-
COPY_FILES
public static final SplitIndexPhase COPY_FILES
-
PURGE_CONTENT_FROM_CHANGES
public static final SplitIndexPhase PURGE_CONTENT_FROM_CHANGES
-
PURGE_CHANGES_FROM_CONTENT
public static final SplitIndexPhase PURGE_CHANGES_FROM_CONTENT
-
DONE
public static final SplitIndexPhase DONE
-
ABORTED
public static final SplitIndexPhase ABORTED
-
REMOVE_OLD_INDEX
public static final SplitIndexPhase REMOVE_OLD_INDEX
-
-
Method Detail
-
values
public static SplitIndexPhase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SplitIndexPhase c : SplitIndexPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitIndexPhase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public String getId()
-
getDescription
public String getDescription()
-
fromId
public static SplitIndexPhase fromId(String id)
-
toString
public String toString()
- Overrides:
toString
in classEnum<SplitIndexPhase>
-
-