Class ExitOptions


  • public class ExitOptions
    extends Object
    Specifies how the Batch service responds to a particular exit condition.
    • Constructor Detail

      • ExitOptions

        public ExitOptions()
    • Method Detail

      • jobAction

        public JobAction jobAction()
        Get the default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate'.
        Returns:
        the jobAction value
      • withJobAction

        public ExitOptions withJobAction​(JobAction jobAction)
        Set the default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). Possible values include: 'none', 'disable', 'terminate'.
        Parameters:
        jobAction - the jobAction value to set
        Returns:
        the ExitOptions object itself.
      • dependencyAction

        public DependencyAction dependencyAction()
        Get possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. Possible values include: 'satisfy', 'block'.
        Returns:
        the dependencyAction value
      • withDependencyAction

        public ExitOptions withDependencyAction​(DependencyAction dependencyAction)
        Set possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks. Possible values include: 'satisfy', 'block'.
        Parameters:
        dependencyAction - the dependencyAction value to set
        Returns:
        the ExitOptions object itself.