Package org.apache.gravitino.job
Interface JobTemplateProvider
public interface JobTemplateProvider
JobTemplateProvider exposes job templates that can be registered into Gravitino.
Implementations are expected to be discoverable (for example via SPI) so that Gravitino can onboard built-in job templates automatically.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRegex to validate built-in job template names.static final StringPrefix for built-in job template names.static final StringProperty key used to carry the built-in job template version.static final StringRegex for version property value (e.g., v1, v2). -
Method Summary
Modifier and TypeMethodDescriptionList<? extends JobTemplate>Return all job templates provided by this implementation.
-
Field Details
-
BUILTIN_NAME_PREFIX
Prefix for built-in job template names.- See Also:
-
BUILTIN_NAME_PATTERN
Regex to validate built-in job template names.- See Also:
-
PROPERTY_VERSION_KEY
Property key used to carry the built-in job template version.- See Also:
-
VERSION_VALUE_PATTERN
Regex for version property value (e.g., v1, v2).- See Also:
-
-
Method Details
-
jobTemplates
List<? extends JobTemplate> jobTemplates()Return all job templates provided by this implementation.- Returns:
- a list of job templates to register
-