public class EntityTypeTaskProgressProcessor extends Object implements TaskProgressProcessor
Constructor and Description |
---|
EntityTypeTaskProgressProcessor(int numEntityTypes,
TaskProgressSink taskProgressSink,
I18nHelper i18n) |
Modifier and Type | Method and Description |
---|---|
void |
processTaskProgress(String entityTypeName,
int entityTypeCount,
long entityCount,
long currentEntityCount)
Update the task progress in the TaskProgressSink.
|
public EntityTypeTaskProgressProcessor(int numEntityTypes, TaskProgressSink taskProgressSink, I18nHelper i18n)
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 textpublic void processTaskProgress(String entityTypeName, int entityTypeCount, long entityCount, long currentEntityCount)
TaskProgressProcessor
processTaskProgress
in interface TaskProgressProcessor
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-2024 Atlassian. All Rights Reserved.