Class EntityCountTaskProgressProcessor
java.lang.Object
com.atlassian.jira.imports.project.taskprogress.AbstractSubtaskProgressProcessor
com.atlassian.jira.imports.project.taskprogress.EntityCountTaskProgressProcessor
- All Implemented Interfaces:
TaskProgressProcessor
public class EntityCountTaskProgressProcessor
extends AbstractSubtaskProgressProcessor
implements TaskProgressProcessor
TaskProgressProcessor that knows the entity count for a backup XML file, or other project import subtask.
This way it can give an accurate picture of percentage complete for this task.
Also, processing each task is just one part of a bigger picture, so the Processor accepts a startPercentage, and endPercentage
value that describes which section of the overall progress this subtask is for.
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionEntityCountTaskProgressProcessor(TaskProgressInterval taskProgressInterval, String subTaskName, int numEntities, I18nHelper i18n) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount) Update the task progress in the TaskProgressSink.voidprocessTaskProgress(String entityTypeName, long entityCount) Methods inherited from class com.atlassian.jira.imports.project.taskprogress.AbstractSubtaskProgressProcessor
getNumEntities, getOverallPercentageComplete
-
Constructor Details
-
EntityCountTaskProgressProcessor
public EntityCountTaskProgressProcessor(TaskProgressInterval taskProgressInterval, String subTaskName, int numEntities, I18nHelper i18n)
-
-
Method Details
-
processTaskProgress
public void processTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount) Description copied from interface:TaskProgressProcessorUpdate the task progress in the TaskProgressSink.- Specified by:
processTaskProgressin interfaceTaskProgressProcessor- Parameters:
entityTypeName- Name of the entity type that we are currently processing. eg "IssueType"entityTypeCount- Count of the Entity Type that we are currently processing.entityCount- Count of ALL the entities we have seen so far in this file.currentEntityCount- Count of entities just within this entity type.
-
processTaskProgress
-