Package org.apache.gravitino.job
Interface JobTemplateChange
- All Known Implementing Classes:
JobTemplateChange.RenameJobTemplate,JobTemplateChange.UpdateJobTemplate,JobTemplateChange.UpdateJobTemplateComment
public interface JobTemplateChange
The interface for job template changes. A job template change is an operation that modifies a job
template. It can be one of the following:
- Rename the job template.
- Update the comment of the job template.
- Update the job template details, such as executable, arguments, environments, custom fields, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA job template change to rename the job template.static final classA job template update for shell templates.static final classA job template update for spark templates.static classBase class for template updates.static final classA job template change to update the details of the job template.static final classA job template change to update the comment of the job template. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic JobTemplateChangeCreates a new job template change to update the name of the job template.static JobTemplateChangeupdateComment(String newComment) Creates a new job template change to update the comment of the job template.static JobTemplateChangeupdateTemplate(JobTemplateChange.TemplateUpdate templateUpdate) Creates a new job template change to update the details of the job template.
-
Method Details
-
rename
Creates a new job template change to update the name of the job template.- Parameters:
newName- The new name of the job template.- Returns:
- The job template change.
-
updateComment
Creates a new job template change to update the comment of the job template.- Parameters:
newComment- The new comment of the job template.- Returns:
- The job template change.
-
updateTemplate
Creates a new job template change to update the details of the job template.- Parameters:
templateUpdate- The job template update details.- Returns:
- The job template change.
-