Class JobRequest

All Implemented Interfaces:
Serializable

public class JobRequest extends ExecutionEnvironmentDTO
All information needed to make a request to run a new job.
Since:
3.0.0
See Also:
  • Field Details

    • DEFAULT_TIMEOUT_DURATION

      public static final int DEFAULT_TIMEOUT_DURATION
      The default number of seconds from start before a job times out.
      See Also:
  • Method Details

    • getCommandArgs

      public Optional<String> getCommandArgs()
      Get the arguments to be put on the command line along with the command executable.
      Returns:
      The command arguments
    • getGroup

      public Optional<String> getGroup()
      Get the group the user should be a member of.
      Returns:
      The group as an optional
    • getEmail

      public Optional<String> getEmail()
      Get the email for the user.
      Returns:
      The email address as an Optional
    • getCpu

      @Deprecated public Optional<Integer> getCpu()
      Deprecated.
      Use runtime instead
      Get the number of CPU's requested to run this job.
      Returns:
      The number of CPU's as an Optional
      Since:
      4.3.0
    • getMemory

      @Deprecated public Optional<Integer> getMemory()
      Deprecated.
      Use runtime instead
      Get the amount of memory (in MB) requested to run this job with.
      Returns:
      The amount of memory as an Optional
      Since:
      4.3.0
    • getTimeout

      public Optional<Integer> getTimeout()
      Get the amount of time requested (in seconds) before this job is timed out on the server.
      Returns:
      The timeout as an Optional
    • getGrouping

      public Optional<String> getGrouping()
      Get the grouping for this job if there currently is one.
      Returns:
      The grouping
      Since:
      3.3.0
    • getGroupingInstance

      public Optional<String> getGroupingInstance()
      Get the grouping instance for this job if there currently is one.
      Returns:
      The grouping instance
      Since:
      3.3.0