public interface JobValidatorService
Modifier and Type | Method and Description |
---|---|
void |
validateJob(InputStream jobInputStream)
Validate the provided xml job file, before the job is parsed by the scheduler
If this validator does not validate against the xml file, leave the implementation
empty.
|
TaskFlowJob |
validateJob(TaskFlowJob job)
Validate a job object after the job has been parsed by the scheduler.
|
TaskFlowJob |
validateJob(TaskFlowJob job,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId)
Validate a job object which may contain variables which need ModelValidatorContext
to validate (e.g., PA:CREDENTIAL, PA:GLOBAL_FILE, PA:USER_FILE), after the job has been
parsed by the scheduler.
|
void validateJob(InputStream jobInputStream) throws JobValidationException
jobInputStream
- job file content to validateJobValidationException
- if the job is not validTaskFlowJob validateJob(TaskFlowJob job) throws JobValidationException
job
- job object to validateJobValidationException
- if the job is not validTaskFlowJob validateJob(TaskFlowJob job, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobValidationException
job
- job object to validatescheduler
- scheduler instance which can give the access to the third-party credentialsspace
- SchedulerSpaceInterface instance which can give the access to check data space filessessionId
- current session for validating jobs with CATALOG_OBJECT variablesJobValidationException
- if the job is not valid