java.lang.Object | |
↳ | com.atlassian.jira.task.context.Context.Builder |
A builder for constructing a background task Context
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the completed
Context . | |||||||||||
A global
atlassian-johnson event that will be used to block access to the application. | |||||||||||
Provides a logger to which progress will be logged at the specified level.
| |||||||||||
A convenience method that calls assumes
DEBUG logging. | |||||||||||
Uses the specified
TaskProgressSink , using the provided I18nHelper to supply translated
messages about the task. | |||||||||||
Something that can provide an estimate of the amount of work that the background task will perform.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
A global atlassian-johnson
event that will be used to block access to the application.
Some activities, like restoring from a backup file, require blocking all access to JIRA. This passes progress information on to this event when it is supplied to the builder.
event | the global atlassian-johnson event |
---|
this
Provides a logger to which progress will be logged at the specified level.
log | the logger to which progress messages will be logged |
---|---|
format | a message format string, such as for String#format(String, Object...). It will
be called with a single argument that represents the progress percentage; a number between
0 and 100 , inclusive. |
level | the logging level to use |
this
A convenience method that calls assumes DEBUG
logging.
It is exactly equivalent to log(log, format, Level.DEBUG)
.
log | as for log(org.apache.log4j.Logger, String, org.apache.log4j.Level) |
---|---|
format | as for log(org.apache.log4j.Logger, String, org.apache.log4j.Level) |
this
Uses the specified TaskProgressSink
, using the provided I18nHelper
to supply translated
messages about the task.
progressSink | the delegate TaskProgressSink to which translated messages are relayed |
---|---|
i18n | the I18N helper for formatting the progress messages |
uiMessageKeyPercentage | the message key for messages about the progress |
uiMessageKeyCurrent | the message key for messages about the current subtask |
this
Something that can provide an estimate of the amount of work that the background task will perform.
If this method is invoked multiple times, only the last value supplied will be used.
sized | whatever is providing an estimate for the amount of work |
---|
this