public class DefaultProgressData extends java.lang.Object implements ProgressData
| Modifier and Type | Field and Description |
|---|---|
protected static int |
INITIAL_MAX_PERCENTAGE |
protected static long |
INITIAL_SPEED |
protected static int |
MAX_PERCENTAGE |
| Constructor and Description |
|---|
DefaultProgressData() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateEstimatedCurrentPercentage(int realPercentage,
long elapsedTime) |
protected long |
calculateTimeToIncreaseOnePercent(long elapsedTime,
int realPercentage,
int estimatedCurrentPercentage) |
int |
getEstimatedCurrentPercentage() |
int |
getMaxPercentage() |
protected int |
getOptimizedEstimatedCurrentPercentage(int realPercentage,
int estimatedCurrentPercentage) |
long |
getTimeToIncreaseOnePercent() |
protected boolean |
progressShouldBeMocked(int realPercentage,
int estimatedCurrentPercentage) |
protected void |
replacePreviousUpdateWithNewOne(com.hybris.backoffice.widgets.processes.ProgressPick progressPick) |
void |
updateProgress(CronJobHistoryModel cronJobHistoryModel,
java.util.Date currentTime) |
protected static final long INITIAL_SPEED
protected static final int INITIAL_MAX_PERCENTAGE
protected static final int MAX_PERCENTAGE
public void updateProgress(CronJobHistoryModel cronJobHistoryModel, java.util.Date currentTime)
updateProgress in interface ProgressDataprotected int calculateEstimatedCurrentPercentage(int realPercentage,
long elapsedTime)
protected int getOptimizedEstimatedCurrentPercentage(int realPercentage,
int estimatedCurrentPercentage)
protected long calculateTimeToIncreaseOnePercent(long elapsedTime,
int realPercentage,
int estimatedCurrentPercentage)
protected boolean progressShouldBeMocked(int realPercentage,
int estimatedCurrentPercentage)
protected void replacePreviousUpdateWithNewOne(com.hybris.backoffice.widgets.processes.ProgressPick progressPick)
public int getEstimatedCurrentPercentage()
getEstimatedCurrentPercentage in interface ProgressDatapublic int getMaxPercentage()
getMaxPercentage in interface ProgressDatapublic long getTimeToIncreaseOnePercent()
getTimeToIncreaseOnePercent in interface ProgressDataCopyright © 2018 SAP SE. All Rights Reserved.