Enum IndexSnapshotError
- java.lang.Object
-
- java.lang.Enum<IndexSnapshotError>
-
- com.atlassian.confluence.internal.index.lucene.snapshot.IndexSnapshotError
-
- All Implemented Interfaces:
Serializable
,Comparable<IndexSnapshotError>
public enum IndexSnapshotError extends Enum<IndexSnapshotError>
Various error in creating/restoring index snapshots- Since:
- 7.6.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_ENOUGH_DISK_SPACE_LOCAL_HOME
NOT_ENOUGH_DISK_SPACE_SHARED_HOME
NOT_WRITABLE_LOCAL_HOME
NOT_WRITABLE_SHARED_HOME
SNAPSHOT_NOT_EXIST
UNAVAILABLE
UNKNOWN
UNKNOWN_INDEX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReIndexError
toReIndexError()
Re-index in DC consists of 2 phases: rebuild index and index snapshot propagation.static IndexSnapshotError
valueOf(String name)
Returns the enum constant of this type with the specified name.static IndexSnapshotError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_INDEX
public static final IndexSnapshotError UNKNOWN_INDEX
-
SNAPSHOT_NOT_EXIST
public static final IndexSnapshotError SNAPSHOT_NOT_EXIST
-
NOT_WRITABLE_LOCAL_HOME
public static final IndexSnapshotError NOT_WRITABLE_LOCAL_HOME
-
NOT_WRITABLE_SHARED_HOME
public static final IndexSnapshotError NOT_WRITABLE_SHARED_HOME
-
NOT_ENOUGH_DISK_SPACE_LOCAL_HOME
public static final IndexSnapshotError NOT_ENOUGH_DISK_SPACE_LOCAL_HOME
-
NOT_ENOUGH_DISK_SPACE_SHARED_HOME
public static final IndexSnapshotError NOT_ENOUGH_DISK_SPACE_SHARED_HOME
-
UNKNOWN
public static final IndexSnapshotError UNKNOWN
-
UNAVAILABLE
public static final IndexSnapshotError UNAVAILABLE
-
-
Method Detail
-
values
public static IndexSnapshotError[] 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 (IndexSnapshotError c : IndexSnapshotError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndexSnapshotError 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
-
toReIndexError
public ReIndexError toReIndexError()
Re-index in DC consists of 2 phases: rebuild index and index snapshot propagation. This method is to translate an error code of propagation phase into an error code of whole process.- Returns:
- translated error code for the whole re-index process,
-
-