Class MaintenanceTaskComponent
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.workspaces.repository.maintenance.MaintenanceTaskComponent
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
Component to launch and follow the maintenance tasks on the repository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInformation
(String taskName) Get the information of a running taskCheck if a task is running or notvoid
service
(ServiceManager smanager) Start a Maintenance TaskMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
MaintenanceTaskComponent
public MaintenanceTaskComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
startTask
Start a Maintenance Task- Parameters:
taskName
- the name of the task- Returns:
- a JSon object
-
isRunning
Check if a task is running or not- Parameters:
taskName
- The task name- Returns:
- true if the task is running
-
getInformation
Get the information of a running task- Parameters:
taskName
- the task name- Returns:
- the information
-