public class Geocoding extends Object implements GeocodingMBean
Constructor and Description |
---|
Geocoding() |
Modifier and Type | Method and Description |
---|---|
GeoEntryExtractor |
getGeoEntryExtractor() |
GeoEntryIndexer |
getGeoEntryIndexer() |
int |
progressCallback()
Returns the value of the progressCallback through Jolokia.
|
void |
setGeoEntryExtractor(GeoEntryExtractor geoEntryExtractor) |
void |
setGeoEntryIndexer(GeoEntryIndexer geoEntryIndexer) |
void |
setProgress(int progress) |
boolean |
updateGeoIndexWithFilePath(String fileName,
String contentFolderId,
String createIndex)
Calls
GeoEntryIndexer.updateIndex(java.util.List<org.codice.ddf.spatial.geocoding.GeoEntry>, boolean, org.codice.ddf.spatial.geocoding.ProgressCallback) with the given path
and contentFolderId in the /content/store. |
boolean |
updateGeoIndexWithUrl(String url,
String createIndex)
Calls
GeoEntryIndexer.updateIndex(java.util.List<org.codice.ddf.spatial.geocoding.GeoEntry>, boolean, org.codice.ddf.spatial.geocoding.ProgressCallback) with the given URL
and country code. |
public boolean updateGeoIndexWithUrl(String url, String createIndex)
GeocodingMBean
GeoEntryIndexer.updateIndex(java.util.List<org.codice.ddf.spatial.geocoding.GeoEntry>, boolean, org.codice.ddf.spatial.geocoding.ProgressCallback)
with the given URL
and country code.updateGeoIndexWithUrl
in interface GeocodingMBean
url
- - the URL of the GeoNames servercreateIndex
- - true if the index is to be created, false if the index is to be appended
topublic boolean updateGeoIndexWithFilePath(String fileName, String contentFolderId, String createIndex)
GeocodingMBean
GeoEntryIndexer.updateIndex(java.util.List<org.codice.ddf.spatial.geocoding.GeoEntry>, boolean, org.codice.ddf.spatial.geocoding.ProgressCallback)
with the given path
and contentFolderId in the /content/store.updateGeoIndexWithFilePath
in interface GeocodingMBean
fileName
- - the filename to be added to the GeoEntry indexcontentFolderId
- - the path to the fileName within /content/storecreateIndex
- - true if the index is to be created, false if the index is to be appended
topublic int progressCallback()
GeocodingMBean
progressCallback
in interface GeocodingMBean
GeoEntryExtractor
public void setProgress(int progress)
public GeoEntryExtractor getGeoEntryExtractor()
public void setGeoEntryExtractor(GeoEntryExtractor geoEntryExtractor)
public GeoEntryIndexer getGeoEntryIndexer()
public void setGeoEntryIndexer(GeoEntryIndexer geoEntryIndexer)
This work is licensed under a Creative Commons Attribution 4.0 International License.