com.atlassian.jira.task.TaskDescriptor<V extends java.io.Serializable> |
Known Indirect Subclasses
MockTaskDescriptor<V extends Serializable>
|
TaskDescriptor decribes the state of a long running task.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the description of the task passed when it was created.
| |||||||||||
This returns number of milliseconds the task has been running for.
| |||||||||||
Return the date when the task was finished.
| |||||||||||
Returns the URL that displays progress on this task.
| |||||||||||
This returns the result of the long running task.
| |||||||||||
Return the date when the task was started.
| |||||||||||
Return the date when the task was submitted.
| |||||||||||
Return he context of task.
| |||||||||||
Reuturn the identifier for this task.
| |||||||||||
Return the
TaskProgressIndicator associated with the task. | |||||||||||
Return the user that started to task.
| |||||||||||
Returns whether this supports requests to cancel it.
| |||||||||||
Returns whether cancellation of task has been requested.
| |||||||||||
Tells if caller if the task has finished running or not.
| |||||||||||
True if the task has been started.
| |||||||||||
Set flag to indicate this task has been cancelled;
| |||||||||||
Store the result in the descriptor.
|
Return the description of the task passed when it was created.
This returns number of milliseconds the task has been running for. Will return zero if the task has not started. When the task has started but not finished, it will return the the difference between the current time and the time was started (i.e. it will change). When the task has finished, it will return the difference between the start time and the end time (i.e. it will not change).
Return the date when the task was finished.
null
will be returned if the task has not finished
executing.
Returns the URL that displays progress on this task. It is built using the TaskContext
.
null
cannot be returned.
This returns the result of the long running task. Returns null if the task is not finished.
Return the date when the task was started.
null
will be returned if the task has not started executing.
Return the date when the task was submitted.
TaskManager
. A null
value will never be returned as the task will always have a submission time.
Return he context of task. Code that starts long running tasks can implement their own variants of this.
null
as a task must always
have a context.
Reuturn the identifier for this task. This is only unique in the current execution of the JVM.
Return the TaskProgressIndicator
associated with the task. A task will only have an indictator if its
callable implements the ProvidesTaskProgress
interface.
TaskProgressIndicator
associated with the task or null
if there isn't one.
Return the user that started to task.
Returns whether this supports requests to cancel it.
true
if cancellation is supported,
and false
otherwiseReturns whether cancellation of task has been requested. Long-running operations should poll to see if task has been requested.
true
if cancellation has been requested,
and false
otherwiseTells if caller if the task has finished running or not.
True if the task has been started.
Set flag to indicate this task has been cancelled;
cancelled | Cancelled flag |
---|
Store the result in the descriptor.
result | The Result |
---|