public class StaxJobValidatorServiceProvider extends Object implements JobValidatorService
Constructor and Description |
---|
StaxJobValidatorServiceProvider() |
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.
|
public void validateJob(InputStream jobInputStream) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
jobInputStream
- job file content to validateJobValidationException
- if the job is not validpublic TaskFlowJob validateJob(TaskFlowJob job)
JobValidatorService
validateJob
in interface JobValidatorService
job
- job object to validatepublic TaskFlowJob validateJob(TaskFlowJob job, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId)
JobValidatorService
validateJob
in interface JobValidatorService
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 variables