|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.domain.valueobject.ImporterStatusDto
public class ImporterStatusDto
Represents a status of an IgeonamesProcessor
ImporterStatus
Field Summary | |
---|---|
static java.lang.String |
CSV_FIELD_SEPARATOR
The csv field separator |
static java.lang.String |
CSV_LINE_SEPARATOR
The csv line separator |
static java.lang.String |
DEFAULT_CURRENT_FILE
the default value of the currentFile if it is null |
Constructor Summary | |
---|---|
ImporterStatusDto(IGeonamesProcessor processor)
|
|
ImporterStatusDto(java.lang.String csv)
Construct a ImporterStatusDto from a csv line |
|
ImporterStatusDto(java.lang.String processorName,
java.lang.String currentFileName,
int currentLine,
int numberOfLineToProcess,
int numberOfLineProcessed,
java.lang.String statusMessage,
ImporterStatus status)
|
Method Summary | |
---|---|
java.lang.String |
getCurrentFileName()
|
int |
getCurrentLine()
|
int |
getNumberOfLinelefts()
|
int |
getNumberOfLineProcessed()
|
int |
getNumberOfLineToProcess()
|
int |
getPercent()
|
java.lang.String |
getProcessorName()
|
ImporterStatus |
getStatus()
|
java.lang.String |
getStatusMessage()
|
java.lang.String |
toCSV()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CSV_LINE_SEPARATOR
toCSV()
,
Constant Field Valuespublic static final java.lang.String CSV_FIELD_SEPARATOR
toCSV()
,
Constant Field Valuespublic static final java.lang.String DEFAULT_CURRENT_FILE
Constructor Detail |
---|
public ImporterStatusDto(java.lang.String processorName, java.lang.String currentFileName, int currentLine, int numberOfLineToProcess, int numberOfLineProcessed, java.lang.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(IGeonamesProcessor processor)
public ImporterStatusDto(java.lang.String csv)
csv
- the String that represent the
ImporterStatusDtoMethod Detail |
---|
public java.lang.String getProcessorName()
public java.lang.String getCurrentFileName()
public int getCurrentLine()
public int getNumberOfLineToProcess()
public int getNumberOfLineProcessed()
public int getPercent()
public ImporterStatus getStatus()
public int getNumberOfLinelefts()
public java.lang.String getStatusMessage()
public java.lang.String toCSV()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |