| java.lang.Object | |
| ↳ | com.atlassian.jira.task.StatefulTaskProgressSink |
Known Direct Subclasses
|
A simple TaskProgressSink thats keeps track of progress. It keeps track of the last progress stored
sent. The actual reporting of progress will be made through another sink.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.task.TaskProgressSink
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create the sink.
| |||||||||||
Create the sink.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return a collection of sinks that allows progress to be reported across the specified ragnge.
| |||||||||||
Create a
StepTaskProgressSink that maps its progress onto a specific range of this
sink. | |||||||||||
Create a
StepTaskProgressSink that maps its progress onto a specific range of this
sink. | |||||||||||
Send a new progress message without changing the current task progress.
| |||||||||||
This method can be called to indicate that progress is being made by a
task.
| |||||||||||
This method can be called to indicate that progress is being made by a
task.
| |||||||||||
Set the progress stored in the sink.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.task.TaskProgressSink
| |||||||||||
Create the sink.
| minProgress | the smallest task progress that the sink can report. |
|---|---|
| maxProgress | the largest task progress that the sink can report. |
| currentProgress | the initial task progress stored within the sink. |
| delegateSink | the sink that will be used for reporting. |
Create the sink. The initial current progress stored in the sink will be set to its configured minimum.
| minProgress | the smallest task progress that the sink can report. |
|---|---|
| maxProgress | the largest task progress that the sink can report. |
| delegateSink | the sink that will be used for reporting. |
Return a collection of sinks that allows progress to be reported across the specified ragnge. Each sink will service a small section of that range. This is commonly used when a task can be divided up into a number of steps that each need to process their progress independently. For example:
Collection projects = ...; IteratorsinkIterator = StatefulTaskProgressSink.createPercentageSinksForRange(0, 100, projects.size(), ...); for (project : projects) { migrateProject(projects, sinkIterator.next()); }
| startRange | start of the progress range to divide. |
|---|---|
| endRange | end of the progress range to divide. |
| numberOfDivisions | the number of intervals in the range. |
| sink | the sink used to report progress. |
Create a StepTaskProgressSink that maps its progress onto a specific range of this
sink. This can be used to keep track of a part of a task that is divided into a number of
smaller steps.
| startProgress | the start of the range on this sink to map back to. |
|---|---|
| length | the length of the range on this sink the view will map back to. |
| numberOfActions | to number of steps the returned sink should work for. |
StepTaskProgressSink that will publish its results in the specified
range of this sink.
Create a StepTaskProgressSink that maps its progress onto a specific range of this
sink. This can be used to keep track of a part of a task that is divided into a number of
smaller steps. The start of the range is taken to be the current progress stored in this
project.
| length | the length of the range on this sink the view will map back to. |
|---|---|
| numberOfActions | to number of steps the returned sink should work for. |
StepTaskProgressSink that will publish its results in the specified
range of this sink.
Send a new progress message without changing the current task progress.
| currentSubTask | the name of the current sub task or null if there isn't one |
|---|---|
| message | an optional message about the progress or null |
This method can be called to indicate that progress is being made by a task.
| taskProgress | the current status of the task. This value will be clamped between the minimum and maximum progress specified when the object is constructed. |
|---|---|
| currentSubTask | the name of the current sub task or null if there isn't one |
| message | an optional message about the progress or null |
This method can be called to indicate that progress is being made by a task. The current status is incremented by the passed amount.
| increment | the amount to increment the current progress by. |
|---|---|
| currentSubTask | the name of the current sub task or null if there isn't one |
| message | an optional message about the progress or null |
Set the progress stored in the sink.
| currentProgress | the progress to store in sink. |
|---|