Class TaskProgress
java.lang.Object
org.ametys.workspaces.repository.maintenance.TaskProgress
TaskProgress
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTaskProgress
(float total) CtorTaskProgress
(float total, float start) Overriden Ctor -
Method Summary
Modifier and TypeMethodDescriptiongetExceptionReturns information this progress object.float
getProgressPercentagegetState()
getStateboolean
isFinishedboolean
isInErrorStateboolean
isNotStartedboolean
isRunningvoid
progress()
Unit progressvoid
progress
(float quantity) Quantitative progressvoid
progressRelativePercentage
(int percentage) Progress by a percentage relative to the range [current progress; total]void
progressTotalPercentage
(int percentage) Progress by a given percentagevoid
setFinishedvoid
setInErrorStatevoid
setInErrorStatevoid
setRunningtoString()
-
Constructor Details
-
TaskProgress
Ctor- Parameters:
total
- The total progress
-
TaskProgress
Overriden Ctor- Parameters:
total
- The total progressstart
- The progress start
-
-
Method Details
-
progress
Unit progress -
progress
Quantitative progress- Parameters:
quantity
- The quantity to progress
-
progressRelativePercentage
Progress by a percentage relative to the range [current progress; total]- Parameters:
percentage
- must be in the [0; 100] range
-
progressTotalPercentage
Progress by a given percentage- Parameters:
percentage
- must be in the [0; 100] range
-
getProgressPercentage
getProgressPercentage- Returns:
- int
-
setRunning
setRunning -
setFinished
setFinished -
setInErrorState
setInErrorState -
setInErrorState
setInErrorState- Parameters:
e
- The exception responsible for the error state
-
isNotStarted
isNotStarted- Returns:
- boolean
-
isRunning
isRunning- Returns:
- boolean
-
isFinished
isFinished- Returns:
- boolean
-
isInErrorState
isInErrorState- Returns:
- boolean
-
getException
getException- Returns:
- Exception
-
getState
getState- Returns:
- State
-
getProgressInfo
Returns information this progress object.- Returns:
- a map containing information on the progress status
-
toString
-