public class ImporterStatusDto extends Object
ImporterStatus
Modifier and Type | Field and Description |
---|---|
static String |
CSV_FIELD_SEPARATOR
The csv field separator (we have chosen a very improbable one)
|
static String |
CSV_LINE_SEPARATOR
The csv line separator
|
static String |
DEFAULT_CURRENT_FILE
the default value of the currentFile if it is null
|
Constructor and Description |
---|
ImporterStatusDto(IImporterProcessor processor) |
ImporterStatusDto(String csv)
Construct a ImporterStatusDto from a csv line
|
ImporterStatusDto(String processorName,
String currentFileName,
long currentLine,
long numberOfLineToProcess,
long numberOfLineProcessed,
String statusMessage,
ImporterStatus status) |
Modifier and Type | Method and Description |
---|---|
String |
getCurrentFileName() |
long |
getCurrentLine() |
long |
getNumberOfLinelefts() |
long |
getNumberOfLineProcessed() |
long |
getNumberOfLineToProcess() |
int |
getPercent() |
String |
getProcessorName() |
ImporterStatus |
getStatus() |
String |
getStatusMessage() |
String |
toCSV() |
public static final String CSV_LINE_SEPARATOR
toCSV()
,
Constant Field Valuespublic static final String CSV_FIELD_SEPARATOR
toCSV()
,
Constant Field Valuespublic static final String DEFAULT_CURRENT_FILE
public ImporterStatusDto(String processorName, String currentFileName, long currentLine, long numberOfLineToProcess, long numberOfLineProcessed, String statusMessage, ImporterStatus status)
processorName
- The name of the processor (typically the className)currentFileName
- wich file is currently processedcurrentLine
- which line of the currentFileName is processednumberOfLineToProcess
- the total of line to be process by the importernumberOfLineProcessed
- The total of line already process by this importerstatusMessage
- a messagestatus
- public ImporterStatusDto(IImporterProcessor processor)
public ImporterStatusDto(String csv)
csv
- the String that represent the
ImporterStatusDtopublic String getProcessorName()
public String getCurrentFileName()
public long getCurrentLine()
public long getNumberOfLineToProcess()
public long getNumberOfLineProcessed()
public int getPercent()
public ImporterStatus getStatus()
public long getNumberOfLinelefts()
public String getStatusMessage()
public String toCSV()
Copyright © 2015. All rights reserved.