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

java.lang.Object
  extended by com.atlassian.jira.imports.project.taskprogress.EntityTypeTaskProgressProcessor
All Implemented Interfaces:
TaskProgressProcessor

public class EntityTypeTaskProgressProcessor
extends java.lang.Object
implements TaskProgressProcessor

TaskProgressProcessor used in the first pass of the import backup file. At this stage we don't know the count of entities, just the number of entity types.

Since:
v3.13

Constructor Summary
EntityTypeTaskProgressProcessor(int numEntityTypes, TaskProgressSink taskProgressSink, I18nHelper i18n)
           
 
Method Summary
 void processTaskProgress(java.lang.String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)
          Update the task progress in the TaskProgressSink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityTypeTaskProgressProcessor

public EntityTypeTaskProgressProcessor(int numEntityTypes,
                                       TaskProgressSink taskProgressSink,
                                       I18nHelper i18n)
Parameters:
numEntityTypes - the total number of top-level entities we believe this SAX handler will encounter (should be the number of entities registered with OfBiz).
taskProgressSink -
i18n - allows us to i18n text
Method Detail

processTaskProgress

public void processTaskProgress(java.lang.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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.