Package com.carfey.ops.job
Interface ConfigValidatingJob
-
- All Superinterfaces:
SchedulableJob
public interface ConfigValidatingJob extends SchedulableJob
This interface can be implemented by aSchedulableJobimplementation to add additional validation beyond what the defaultParameterannotations allow.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.carfey.ops.job.SchedulableJob
SchedulableJob.AsyncJob, SchedulableJob.Initializable, SchedulableJob.InitializableChainAnnotation, SchedulableJob.InitializableChainConditionAnnotation, SchedulableJob.RepeatableInitializableAnnotation, SchedulableJob.Schedulable, SchedulableJob.ScheduledRun
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateConfig(JobConfig config)Validate the configuration that is being saved for the job, plus those added byConfigGeneratingJob.-
Methods inherited from interface com.carfey.ops.job.SchedulableJob
execute
-
-
-
-
Method Detail
-
validateConfig
void validateConfig(JobConfig config) throws ValidationException, ParameterException
Validate the configuration that is being saved for the job, plus those added byConfigGeneratingJob.- Parameters:
config- the config to be validated, including saved parameters and those added byConfigGeneratingJob.- Throws:
ValidationException- if validation failsParameterException- if some other configuration exception is encountered
-
-