Enum Class JobTemplate.JobType

java.lang.Object
java.lang.Enum<JobTemplate.JobType>
org.apache.gravitino.job.JobTemplate.JobType
All Implemented Interfaces:
Serializable, Comparable<JobTemplate.JobType>, Constable
Enclosing class:
JobTemplate

public static enum JobTemplate.JobType extends Enum<JobTemplate.JobType>
JobType is an enum to define the type of the job.

Gravitino supports different types of jobs, such as Spark and Shell. The job type is required to determine the runtime environment for executing the job.

  • Enum Constant Details

    • SPARK

      public static final JobTemplate.JobType SPARK
      Job type for executing a Spark application.
    • SHELL

      public static final JobTemplate.JobType SHELL
      Job type for executing a shell command.
  • Method Details

    • values

      public static JobTemplate.JobType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JobTemplate.JobType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null