Package ubic.gemma.web.job.progress
Class ProgressStatusServiceImpl
- java.lang.Object
-
- ubic.gemma.web.job.progress.ProgressStatusServiceImpl
-
- All Implemented Interfaces:
ProgressStatusService
@Component public class ProgressStatusServiceImpl extends Object implements ProgressStatusService
This class exposes methods for AJAX calls.- Author:
- klc
-
-
Constructor Summary
Constructors Constructor Description ProgressStatusServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEmailAlert(String taskId)
Set up an email alert for this job; an email will be sent when it has finished (or failed).boolean
cancelJob(String taskId)
Attempt to cancel the job.Object
checkResult(String taskId)
List<ProgressData>
getProgressStatus(String taskId)
Get the latest information about how a job is doing.SubmittedTaskValueObject
getSubmittedTask(String taskId)
Collection<SubmittedTaskValueObject>
getSubmittedTasks()
-
-
-
Method Detail
-
addEmailAlert
public void addEmailAlert(String taskId)
Description copied from interface:ProgressStatusService
Set up an email alert for this job; an email will be sent when it has finished (or failed).- Specified by:
addEmailAlert
in interfaceProgressStatusService
- Parameters:
taskId
- task id
-
cancelJob
public boolean cancelJob(String taskId)
Description copied from interface:ProgressStatusService
Attempt to cancel the job.- Specified by:
cancelJob
in interfaceProgressStatusService
- Parameters:
taskId
- tak id- Returns:
- true if cancelling was error-free, false otherwise.
-
checkResult
public Object checkResult(String taskId) throws Exception
- Specified by:
checkResult
in interfaceProgressStatusService
- Throws:
Exception
-
getProgressStatus
public List<ProgressData> getProgressStatus(String taskId)
Description copied from interface:ProgressStatusService
Get the latest information about how a job is doing.- Specified by:
getProgressStatus
in interfaceProgressStatusService
- Parameters:
taskId
- id- Returns:
- progress data
-
getSubmittedTask
public SubmittedTaskValueObject getSubmittedTask(String taskId)
- Specified by:
getSubmittedTask
in interfaceProgressStatusService
-
getSubmittedTasks
public Collection<SubmittedTaskValueObject> getSubmittedTasks()
- Specified by:
getSubmittedTasks
in interfaceProgressStatusService
-
-