@PublicApi public class Progress extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Progress.Result |
static class |
Progress.Status |
Modifier and Type | Method and Description |
---|---|
void |
addStep(ProgressStep progressStep) |
int |
amountOfSteps() |
void |
cancelled() |
int |
currentStep() |
void |
decrementTotalWorkUnits(int ignoredWorkUnits) |
void |
finishedError() |
void |
finishedOk() |
String |
getActor() |
String |
getCurrentStepDescription() |
int |
getCurrentStepTotalWorkUnits() |
String |
getCurrentWorkDescription() |
int |
getCurrentWorkUnits() |
Date |
getFinishedDate() |
int |
getMaxStepIndex() |
ProgressId |
getProgressId() |
Integer |
getProgressInPercent() |
ArrayList<ProgressStep> |
getProgressSteps() |
Progress.Result |
getResult() |
com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult |
getResultData() |
String |
getResultMessage() |
Date |
getStartDate() |
Progress.Status |
getStatus() |
int |
getStepIndex() |
int |
getTotalWorkUnits() |
void |
incrementCurrentWorkUnits() |
void |
incrementCurrentWorkUnits(int incrementCurrentWorkUnits) |
boolean |
isCancelled() |
boolean |
isCategory(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory category) |
boolean |
isError() |
boolean |
isFinished() |
boolean |
isInProgress() |
static Progress |
newSingleStep(ProgressId progressId,
String overallDescription,
String actor,
int totalWorkUnits) |
static Progress |
newWithSteps(ProgressId progressId,
String actor,
int numberOfSteps) |
boolean |
nextStep() |
void |
setCurrentWorkDescription(String currentWorkDescription) |
void |
setCurrentWorkUnits(int currentWorkUnits) |
void |
setResultData(com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult resultData) |
void |
setResultMessage(String resultMessage) |
void |
setTotalWorkUnits(int totalWorkUnits) |
String |
toString()
Note! Uses reflection, so be wary, intended for DEBUG and ERROR log.
|
public static Progress newSingleStep(ProgressId progressId, String overallDescription, String actor, int totalWorkUnits)
public static Progress newWithSteps(ProgressId progressId, String actor, int numberOfSteps)
public void addStep(ProgressStep progressStep) throws InsightProgressIllegalStateException
public ProgressId getProgressId()
public int amountOfSteps()
public int currentStep()
public String getCurrentStepDescription()
public boolean nextStep()
public boolean isCategory(com.riadalabs.jira.plugins.insight.services.progress.ProgressCategory category)
public boolean isInProgress()
public boolean isFinished()
public boolean isError()
public boolean isCancelled()
public void finishedOk()
public void cancelled()
public void finishedError()
public Progress.Status getStatus()
public Progress.Result getResult()
public com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult getResultData()
public void setResultData(com.riadalabs.jira.plugins.insight.services.progress.result.ProgressResult resultData)
public String getResultMessage()
public void setResultMessage(String resultMessage)
public Date getStartDate()
public Date getFinishedDate()
public String getActor()
public String toString()
public void setCurrentWorkDescription(String currentWorkDescription)
public Integer getProgressInPercent()
public int getCurrentWorkUnits()
public int getCurrentStepTotalWorkUnits()
public String getCurrentWorkDescription()
public int getTotalWorkUnits()
public void setCurrentWorkUnits(int currentWorkUnits)
public void incrementCurrentWorkUnits(int incrementCurrentWorkUnits)
public void setTotalWorkUnits(int totalWorkUnits)
public void decrementTotalWorkUnits(int ignoredWorkUnits)
public void incrementCurrentWorkUnits()
public ArrayList<ProgressStep> getProgressSteps()
public int getMaxStepIndex()
public int getStepIndex()
Copyright © 2024 Atlassian. All rights reserved.