Package org.apache.gravitino.job
Class ShellJobTemplate
java.lang.Object
org.apache.gravitino.job.JobTemplate
org.apache.gravitino.job.ShellJobTemplate
Represents a job template for executing shell scripts. This class extends the JobTemplate class
and provides functionality specific to shell job templates, including a list of scripts to be
executed.
Scripts are a list of shell files that will be leveraged by the "executable". Scripts must be put in the place where Gravitino server can access them. Current Gravitino can support scripts in the local file system, or on the web server (e.g., HTTP, HTTPS, FTP). Distributed file systems like HDFS or S3 will be supported in the future.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for creating instances ofShellJobTemplate
.Nested classes/interfaces inherited from class org.apache.gravitino.job.JobTemplate
JobTemplate.BaseBuilder<B extends JobTemplate.BaseBuilder<B,
P>, P extends JobTemplate>, JobTemplate.JobType -
Field Summary
Fields inherited from class org.apache.gravitino.job.JobTemplate
arguments, comment, customFields, environments, executable, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ShellJobTemplate
(ShellJobTemplate.Builder builder) Constructs a ShellJobTemplate with the specified builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShellJobTemplate.Builder
builder()
Creates a new builder for constructing instances ofShellJobTemplate
.boolean
int
hashCode()
jobType()
Get the job type.scripts()
Returns the list of scripts to be executed by the shell job template.toString()
Methods inherited from class org.apache.gravitino.job.JobTemplate
arguments, comment, customFields, environments, executable, name
-
Constructor Details
-
ShellJobTemplate
Constructs a ShellJobTemplate with the specified builder.- Parameters:
builder
- the builder containing the configuration for the shell job template
-
-
Method Details
-
scripts
Returns the list of scripts to be executed by the shell job template.- Returns:
- the list of scripts
-
jobType
Description copied from class:JobTemplate
Get the job type.- Specified by:
jobType
in classJobTemplate
- Returns:
- the type of the job template
-
equals
- Overrides:
equals
in classJobTemplate
-
hashCode
public int hashCode()- Overrides:
hashCode
in classJobTemplate
-
toString
- Overrides:
toString
in classJobTemplate
-
builder
Creates a new builder for constructing instances ofShellJobTemplate
.- Returns:
- a new instance of
ShellJobTemplate.Builder
-