|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.importer.GeonamesFileRetriever
public class GeonamesFileRetriever
Retrieve The Geonames files from a server
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
The logger |
| Constructor Summary | |
|---|---|
GeonamesFileRetriever()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCurrentFileName()
|
int |
getNumberOfLinesToProcess()
|
int |
getReadFileLine()
The number of read line for the current processed file |
ImporterStatus |
getStatus()
|
java.lang.String |
getStatusMessage()
|
int |
getTotalReadLine()
The number of read line for all the processed file |
void |
process()
Do the stuff... |
java.util.List<NameValueDTO<java.lang.Integer>> |
rollback()
/! |
void |
setImporterConfig(ImporterConfig importerConfig)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
| Constructor Detail |
|---|
public GeonamesFileRetriever()
| Method Detail |
|---|
public void process()
throws GeonamesProcessorException
IGeonamesProcessor
process in interface IGeonamesProcessorGeonamesProcessorExceptionpublic void setImporterConfig(ImporterConfig importerConfig)
importerConfig - The importerConfig to setpublic int getReadFileLine()
IGeonamesProcessor
getReadFileLine in interface IGeonamesProcessorIGeonamesProcessor.getTotalReadLine()public int getTotalReadLine()
IGeonamesProcessor
getTotalReadLine in interface IGeonamesProcessorIGeonamesProcessor.getReadFileLine()public java.lang.String getCurrentFileName()
getCurrentFileName in interface IGeonamesProcessorpublic int getNumberOfLinesToProcess()
getNumberOfLinesToProcess in interface IGeonamesProcessorpublic ImporterStatus getStatus()
getStatus in interface IGeonamesProcessorpublic java.lang.String getStatusMessage()
getStatusMessage in interface IGeonamesProcessorpublic java.util.List<NameValueDTO<java.lang.Integer>> rollback()
IGeonamesProcessor
rollback in interface IGeonamesProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||