Enum SystemMaintenanceTaskType
- java.lang.Object
-
- java.lang.Enum<SystemMaintenanceTaskType>
-
- com.atlassian.confluence.impl.system.task.SystemMaintenanceTaskType
-
- All Implemented Interfaces:
Serializable
,Comparable<SystemMaintenanceTaskType>
public enum SystemMaintenanceTaskType extends Enum<SystemMaintenanceTaskType>
Types ofSystemMaintenanceTask
s.- Since:
- 7.3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_INDEX_SNAPSHOT
RESTORE_INDEX_SNAPSHOT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<SystemMaintenanceTaskType>
forTask(SystemMaintenanceTask task)
Class<? extends SystemMaintenanceTask>
getTaskClazz()
static SystemMaintenanceTaskType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SystemMaintenanceTaskType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_INDEX_SNAPSHOT
public static final SystemMaintenanceTaskType CREATE_INDEX_SNAPSHOT
-
RESTORE_INDEX_SNAPSHOT
public static final SystemMaintenanceTaskType RESTORE_INDEX_SNAPSHOT
-
-
Method Detail
-
values
public static SystemMaintenanceTaskType[] 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 (SystemMaintenanceTaskType c : SystemMaintenanceTaskType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemMaintenanceTaskType 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
-
getTaskClazz
public Class<? extends SystemMaintenanceTask> getTaskClazz()
-
forTask
public static Optional<SystemMaintenanceTaskType> forTask(SystemMaintenanceTask task)
- Returns:
- Task type of a
SystemMaintenanceTask
. Empty if cannot be found.
-
-