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<ubic.gemma.core.job.progress.ProgressData>
getProgressStatus(String taskId)
Get the latest information about how a job is doing.ubic.gemma.core.job.progress.SubmittedTaskValueObject
getSubmittedTask(String taskId)
Collection<ubic.gemma.core.job.progress.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<ubic.gemma.core.job.progress.ProgressData> getProgressStatus(String taskId)
Get the latest information about how a job is doing.- Parameters:
taskId
- id- Returns:
- progress data
-
getSubmittedTask
ubic.gemma.core.job.progress.SubmittedTaskValueObject getSubmittedTask(String taskId)
-
getSubmittedTasks
@Secured("GROUP_ADMIN") Collection<ubic.gemma.core.job.progress.SubmittedTaskValueObject> getSubmittedTasks()
-
-