Enum Class MaintenanceModeTask.MaintenanceStage
java.lang.Object
java.lang.Enum<MaintenanceModeTask.MaintenanceStage>
de.espirit.firstspirit.access.schedule.MaintenanceModeTask.MaintenanceStage
- All Implemented Interfaces:
Serializable
,Comparable<MaintenanceModeTask.MaintenanceStage>
,Constable
- Enclosing interface:
- MaintenanceModeTask
public static enum MaintenanceModeTask.MaintenanceStage
extends Enum<MaintenanceModeTask.MaintenanceStage>
A maintenance mode task consists of up to five stages, from an initial preparation period up to activating the actual maintenance mode. Stages with a duration of 0 are skipped. The ordering of this enum represents the actual processing order of stages during execution.
- Since:
- 5.2.516
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisplay an informational message containing the starting time and duration of the maintenance mode.Display a warning encouraging users to quit their sessions.The maintenance mode is active.The planned maintenance mode will be listed in the server monitoring, but at this time, users will not be notified.It is not possible to connect to the server or the selected projects anymore. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MaintenanceModeTask.MaintenanceStage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREPARATION
The planned maintenance mode will be listed in the server monitoring, but at this time, users will not be notified.The default duration is 30 minutes.
- Since:
- 5.2.516
-
DISPLAY_MESSAGE
Display an informational message containing the starting time and duration of the maintenance mode.The default duration is 15 minutes.
- Since:
- 5.2.516
- See Also:
-
DISPLAY_SESSION_WARNING
Display a warning encouraging users to quit their sessions.The default duration is 5 minutes.
- Since:
- 5.2.516
-
REJECT_NEW_SESSIONS
It is not possible to connect to the server or the selected projects anymore. The duration must not be 0.The default duration is 5 minutes.
- Since:
- 5.2.516
-
MAINTENANCE_MODE_ACTIVE
The maintenance mode is active. At the beginning of this stage, existing sessions will be disconnected ifMaintenanceModeTask.getDisconnectMode()
isMaintenanceModeTask.DisconnectMode.DISCONNECT_SESSIONS
. The duration must not be 0.The default duration is 15 minutes.
- Since:
- 5.2.516
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-