ExitOptions Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.ExitOptions

public class ExitOptions

Specifies how the Batch service responds to a particular exit condition.

Method Summary

Modifier and Type Method and Description
DependencyAction dependencyAction()

Get the default is 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the job's usesTaskDependencies property is set to false, then specifying the dependencyAction 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: 'satisfy', 'block'.

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'.

ExitOptions withDependencyAction(DependencyAction dependencyAction)

Set the default is 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the job's usesTaskDependencies property is set to false, then specifying the dependencyAction 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: 'satisfy', 'block'.

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'.

Method Details

dependencyAction

public DependencyAction dependencyAction()

Get the default is 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the job's usesTaskDependencies property is set to false, then specifying the dependencyAction 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: 'satisfy', 'block'.

Returns:

the dependencyAction value

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

withDependencyAction

public ExitOptions withDependencyAction(DependencyAction dependencyAction)

Set the default is 'satisfy' for exit code 0, and 'block' for all other exit conditions. If the job's usesTaskDependencies property is set to false, then specifying the dependencyAction 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: 'satisfy', 'block'.

Parameters:

dependencyAction - the dependencyAction value to set

Returns:

the ExitOptions object itself.

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.

Applies to