Package com.illumon.util.progress
Class MinProcessStatus
java.lang.Object
com.illumon.util.progress.MinProcessStatus
- All Implemented Interfaces:
StatusCallback
public class MinProcessStatus extends Object implements StatusCallback
Minimal root implementation of a Process Status.
No interface is needed at this point.
-
Constructor Summary
Constructors Constructor Description MinProcessStatus()
-
Method Summary
Modifier and Type Method Description int
getStepValue()
Get the current value of the the current step/subrange.int
getValue()
get the current value of the progress object.void
update(int progress, Supplier<String> status)
Update the progress % and status message.
-
Constructor Details
-
MinProcessStatus
public MinProcessStatus()
-
-
Method Details
-
update
Description copied from interface:StatusCallback
Update the progress % and status message.- Specified by:
update
in interfaceStatusCallback
- Parameters:
progress
- percent complete (0-100)status
- optional message supplier
-
getValue
public int getValue()Description copied from interface:StatusCallback
get the current value of the progress object.- Specified by:
getValue
in interfaceStatusCallback
- Returns:
- the % complete of the topmost ProcessStatus - a number between 1 and 100
-
getStepValue
public int getStepValue()Description copied from interface:StatusCallback
Get the current value of the the current step/subrange.- Specified by:
getStepValue
in interfaceStatusCallback
- Returns:
- the % complete of the current step - a number between 1 and 100
-