Class DefaultSystemMaintenanceTaskRegistry
java.lang.Object
com.atlassian.confluence.impl.system.DefaultSystemMaintenanceTaskRegistry
- All Implemented Interfaces:
SystemMaintenanceTaskRegistry
public class DefaultSystemMaintenanceTaskRegistry
extends Object
implements SystemMaintenanceTaskRegistry
- Since:
- 7.5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindTaskRunner
(SystemMaintenanceTaskType taskType) Find aSystemMaintenanceTaskRunner
to run tasks of a specific type<T extends SystemMaintenanceTask>
voidregister
(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner) RegistertaskRunner
to run tasks of a specific typevoid
unregister
(SystemMaintenanceTaskType taskType) Remove currentSystemMaintenanceTaskRunner
as task runner for tasks of a specific type
-
Constructor Details
-
DefaultSystemMaintenanceTaskRegistry
public DefaultSystemMaintenanceTaskRegistry()
-
-
Method Details
-
register
public <T extends SystemMaintenanceTask> void register(SystemMaintenanceTaskType taskType, SystemMaintenanceTaskRunner<T> taskRunner) Description copied from interface:SystemMaintenanceTaskRegistry
RegistertaskRunner
to run tasks of a specific type- Specified by:
register
in interfaceSystemMaintenanceTaskRegistry
- Parameters:
taskType
- type of tasks to registertaskRunner
- aSystemMaintenanceTaskRunner
instance to run tasks of typetaskType
-
unregister
Description copied from interface:SystemMaintenanceTaskRegistry
Remove currentSystemMaintenanceTaskRunner
as task runner for tasks of a specific type- Specified by:
unregister
in interfaceSystemMaintenanceTaskRegistry
- Parameters:
taskType
- type of tasks to un-register
-
findTaskRunner
Description copied from interface:SystemMaintenanceTaskRegistry
Find aSystemMaintenanceTaskRunner
to run tasks of a specific type- Specified by:
findTaskRunner
in interfaceSystemMaintenanceTaskRegistry
- Parameters:
taskType
- type of tasks- Returns:
- a task runner currently registered to run tasks of specified type.
-