Class JdbcCallJob
java.lang.Object
net.solarnetwork.central.scheduler.JobSupport
net.solarnetwork.central.common.job.JdbcCallJob
- All Implemented Interfaces:
Runnable,ManagedJob
- Direct Known Subclasses:
StaleRecordProcessor
Job to execute a stored procedure that returns a BIGINT result.
- Since:
- 1.10
-
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
ConstructorsConstructorDescriptionJdbcCallJob(org.springframework.jdbc.core.JdbcOperations jdbcOps) Construct with properties. -
Method Summary
Modifier and TypeMethodDescriptionGet the JDBC call.org.springframework.jdbc.core.JdbcOperationsGet the JDBC operations.voidrun()voidsetJdbcCall(String jdbcCall) Set the JDBC call.Methods 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
-
JdbcCallJob
public JdbcCallJob(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() -
getJdbcOps
public org.springframework.jdbc.core.JdbcOperations getJdbcOps()Get the JDBC operations.- Returns:
- the operations
-
getJdbcCall
Get the JDBC call.- Returns:
- the call
-
setJdbcCall
Set the JDBC call.- Parameters:
jdbcCall- the call
-