Class StaleRecordProcessor
java.lang.Object
net.solarnetwork.central.scheduler.JobSupport
net.solarnetwork.central.common.job.JdbcCallJob
net.solarnetwork.central.common.job.StaleRecordProcessor
- All Implemented Interfaces:
Runnable,ManagedJob
- Direct Known Subclasses:
TieredStaleRecordProcessor
Job to process "stale" record data.
This job executes a JDBC procedure, which is expected to return an Integer result representing the number of rows processed by the call. If the procedure returns zero, the job stops immediately.
-
Field Summary
Fields inherited from class net.solarnetwork.central.scheduler.JobSupport
DEFAULT_CRON, DEFAULT_JITTER, DEFAULT_MAX_ITERATIONS, DEFAULT_MAX_WAIT, DEFAULT_PARALLELISM, log -
Constructor Summary
ConstructorsConstructorDescriptionStaleRecordProcessor(org.springframework.jdbc.core.JdbcOperations jdbcOps) Construct with properties. -
Method Summary
Methods inherited from class net.solarnetwork.central.common.job.JdbcCallJob
getJdbcCall, getJdbcOps, setJdbcCallMethods inherited from class net.solarnetwork.central.scheduler.JobSupport
executeJobTask, executeParallelJob, getGroupId, getId, getJitter, getMaximumIterations, getMaximumWaitMs, getParallelism, getParallelTaskExecutor, getSchedule, setGroupId, setId, setJitter, setMaximumIterations, setMaximumWaitMs, setParallelism, setParallelTaskExecutor, setSchedule
-
Constructor Details
-
StaleRecordProcessor
public StaleRecordProcessor(org.springframework.jdbc.core.JdbcOperations jdbcOps) Construct with properties.- Parameters:
jdbcOps- the JdbcOperations to use- Throws:
IllegalArgumentException- if any argument is null
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classJdbcCallJob
-