Package de.espirit.firstspirit.agency
Interface MaintenanceModeAgent
public interface MaintenanceModeAgent
This agent is used to control active maintenance mode tasks.
- Since:
- 5.2.518, 5.2.605
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialistType<MaintenanceModeAgent>The agent's technical type to be used for requesting the agent from aSpecialistsBroker. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<MaintenanceModeInfo>A maintenance mode task is active if one of the stages mentioned inMaintenanceModeTask.MaintenanceStageis active.voidstopMaintenanceMode(@NotNull MaintenanceModeInfo info) Stops a maintenance mode task, skipping any future stages.
-
Field Details
-
TYPE
The agent's technical type to be used for requesting the agent from aSpecialistsBroker.- Since:
- 5.2.518, 5.2.605
-
-
Method Details
-
getActiveMaintenanceModes
A maintenance mode task is active if one of the stages mentioned inMaintenanceModeTask.MaintenanceStageis active. This method returns information about all active tasks.- Returns:
- a collection of all active maintenance mode tasks in no
particular order. May be empty but never
null. - Since:
- 5.2.518, 5.2.605
-
stopMaintenanceMode
Stops a maintenance mode task, skipping any future stages. If the task has been stopped or finished before, this method does nothing.- Parameters:
info- the information regarding the maintenance mode task, must not benull.- Throws:
IllegalArgumentException- if the task could not be found.- Since:
- 5.2.518, 5.2.605
-