Class JobRunRequest
java.lang.Object
org.apache.gravitino.dto.requests.JobRunRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to run a job using a specified job template.
-
Constructor Summary
ConstructorsConstructorDescriptionJobRunRequest
(String jobTemplateName, Map<String, String> jobConf) Creates a new JobRunRequest with the specified job template name and job configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
JobRunRequest
Creates a new JobRunRequest with the specified job template name and job configuration.- Parameters:
jobTemplateName
- The name of the job template to use for running the job.jobConf
- A map containing the job configuration parameters.
-
-
Method Details
-
validate
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-