|
||||||||||
| 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 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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
String |
getCurrentFileName()
|
long |
getCurrentLine()
|
long |
getNumberOfLinelefts()
|
long |
getNumberOfLineProcessed()
|
long |
getNumberOfLineToProcess()
|
int |
getPercent()
|
String |
getProcessorName()
|
ImporterStatus |
getStatus()
|
String |
getStatusMessage()
|
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 String CSV_LINE_SEPARATOR
toCSV(),
Constant Field Valuespublic static final String CSV_FIELD_SEPARATOR
toCSV(),
Constant Field Valuespublic static final String DEFAULT_CURRENT_FILE
| Constructor Detail |
|---|
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
ImporterStatusDto| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||