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 Details

  • Method Details

    • processTaskProgress

      public void processTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)
      Description copied from interface: TaskProgressProcessor
      Update the task progress in the TaskProgressSink.
      Specified by:
      processTaskProgress in interface TaskProgressProcessor
      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

      public void processTaskProgress(String entityTypeName, long entityCount)