public class GeocodingJob extends AbstractJobPerformable<CronJobModel>
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
GeocodingJob() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildErrorMessage(PointOfServiceModel pos,
DistanceUnawareLocation location,
GeoServiceWrapperException geoServiceWrapperException) |
protected GeoWebServiceWrapper |
getGeoServiceWrapper() |
protected PointOfServiceDao |
getPointOfServiceDao() |
boolean |
isAbortable()
Checks whether the execution is implemented abortable.
|
PerformResult |
perform(CronJobModel cronJob)
The execution body for a
ServicelayerJob. |
protected boolean |
processInternalDelay(GeocodeAddressesCronJobModel cronJob)
wait for the defined internal delay
|
void |
setGeoServiceWrapper(GeoWebServiceWrapper geoServiceWrapper) |
void |
setPointOfServiceDao(PointOfServiceDao pointOfServiceDao) |
protected void |
storeDistanceUnawareLocation(PointOfServiceModel pos)
calculates and stores the GPS information for the given point of service
|
protected java.util.Optional<GeocodeAddressesCronJobModel> |
validateCronJob(CronJobModel cronJob) |
clearAbortRequestedIfNeeded, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic PerformResult perform(CronJobModel cronJob)
JobPerformableServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<CronJobModel>perform in class AbstractJobPerformable<CronJobModel>cronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.protected boolean processInternalDelay(GeocodeAddressesCronJobModel cronJob)
protected void storeDistanceUnawareLocation(PointOfServiceModel pos)
protected java.util.Optional<GeocodeAddressesCronJobModel> validateCronJob(CronJobModel cronJob)
protected java.lang.String buildErrorMessage(PointOfServiceModel pos, DistanceUnawareLocation location, GeoServiceWrapperException geoServiceWrapperException)
public boolean isAbortable()
JobPerformableisAbortable in interface JobPerformable<CronJobModel>isAbortable in class AbstractJobPerformable<CronJobModel>protected PointOfServiceDao getPointOfServiceDao()
public void setPointOfServiceDao(PointOfServiceDao pointOfServiceDao)
pointOfServiceDao - the pointOfServiceDao to setprotected GeoWebServiceWrapper getGeoServiceWrapper()
public void setGeoServiceWrapper(GeoWebServiceWrapper geoServiceWrapper)
geoServiceWrapper - the geoServiceWrapper to setCopyright © 2018 SAP SE. All Rights Reserved.