public class MaintenanceTaskComponent extends AbstractLogEnabled implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
private MaintenanceTaskManager |
_taskManager
The maintenance task manager
|
Constructor and Description |
---|
MaintenanceTaskComponent() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getInformation(String taskName)
Get the information of a running task
|
Map<String,Object> |
isRunning(String taskName)
Check if a task is running or not
|
void |
service(ServiceManager smanager) |
Map<String,Object> |
startTask(String taskName)
Start a Maintenance Task
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private MaintenanceTaskManager _taskManager
public MaintenanceTaskComponent()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<String,Object> startTask(String taskName)
taskName
- the name of the taskpublic Map<String,Object> isRunning(String taskName)
taskName
- The task namepublic Map<String,Object> getInformation(String taskName)
taskName
- the task name