Class RunGeoLocationBatchJob
java.lang.Object
ch.tocco.nice2.tasks.api.quartz.AbstractJob
ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
ch.tocco.nice2.optional.geolocation.impl.batch.RunGeoLocationBatchJob
- All Implemented Interfaces:
org.quartz.InterruptableJob,org.quartz.Job
Updates all entities where geographic coordinates should be updated
for a certain address. The entities to taken into account and the
relevant address fields can be defined via a `GeoLocationEntities`
contribution.
- See Also:
-
Field Summary
Fields inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
businessUnitManager, l10N, logger, principalManager, securityManager -
Constructor Summary
ConstructorsConstructorDescriptionRunGeoLocationBatchJob(GeolocListenerService geolocListenerService, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(org.quartz.JobExecutionContext context, JobDataMapReader jobDataMapReader) voidsetGeoLocationEntities(List<GeoLocationEntityContribution> geoLocationEntities) voidsetLimit(int limit) Set limit of entities to process in one job run.voidsetTxSize(int txSize) Set how many entities to process in one transaction.Methods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractInterruptableJob
interrupt, isCancelledMethods inherited from class ch.tocco.nice2.tasks.api.quartz.AbstractJob
execute, getProgress, getProgressLog, setBusinessUnitManager, setConverters, setL10N, setLogger, setPrincipalManager, setProgressPersistenceManager, setRuleProviderService, setSecurityManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.quartz.Job
execute
-
Constructor Details
-
RunGeoLocationBatchJob
public RunGeoLocationBatchJob(GeolocListenerService geolocListenerService, CommandExecutor commandExecutor)
-
-
Method Details
-
setGeoLocationEntities
@Autowired(required=false) public void setGeoLocationEntities(List<GeoLocationEntityContribution> geoLocationEntities) -
setLimit
@Value("${nice2.optional.geolocation.RunGeoLocationBatchJob.limit}") public void setLimit(int limit) Set limit of entities to process in one job run. -
setTxSize
@Value("${nice2.optional.geolocation.RunGeoLocationBatchJob.txSize}") public void setTxSize(int txSize) Set how many entities to process in one transaction. -
doExecute
- Specified by:
doExecutein classAbstractJob
-