com.atlassian.jira.imports.project.taskprogress
Class EntityCountTaskProgressProcessor

java.lang.Object
  extended by com.atlassian.jira.imports.project.taskprogress.AbstractSubtaskProgressProcessor
      extended by 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
EntityCountTaskProgressProcessor(TaskProgressInterval taskProgressInterval, String subTaskName, int numEntities, I18nHelper i18n)
           
 
Method Summary
 void processTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)
          Update the task progress in the TaskProgressSink.
 void processTaskProgress(String entityTypeName, long entityCount)
           
 
Methods inherited from class com.atlassian.jira.imports.project.taskprogress.AbstractSubtaskProgressProcessor
getNumEntities, getOverallPercentageComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityCountTaskProgressProcessor

public EntityCountTaskProgressProcessor(TaskProgressInterval taskProgressInterval,
                                        String subTaskName,
                                        int numEntities,
                                        I18nHelper i18n)
Method Detail

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)


Copyright © 2002-2012 Atlassian. All Rights Reserved.