Package ubic.gemma.web.job.progress
Interface ProgressStatusService
-
- All Known Implementing Classes:
ProgressStatusServiceImpl
@Component public interface ProgressStatusService
These methods are exposed to front-end.- Author:
- paul
-
-
Method Summary
All Methods Instance Methods Abstract 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
void addEmailAlert(String taskId)
Set up an email alert for this job; an email will be sent when it has finished (or failed).- Parameters:
taskId
- task id
-
cancelJob
boolean cancelJob(String taskId)
Attempt to cancel the job.- Parameters:
taskId
- tak id- Returns:
- true if cancelling was error-free, false otherwise.
-
getProgressStatus
List<ProgressData> getProgressStatus(String taskId)
Get the latest information about how a job is doing.- Parameters:
taskId
- id- Returns:
- progress data
-
getSubmittedTask
SubmittedTaskValueObject getSubmittedTask(String taskId)
-
getSubmittedTasks
@Secured("GROUP_ADMIN") Collection<SubmittedTaskValueObject> getSubmittedTasks()
-
-