ExitConditions Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. ExitConditions
- com.
public class ExitConditions
Specifies how the Batch service should respond when the task completes.
Method Summary
Modifier and Type | Method and Description |
---|---|
Exit |
defaultProperty()
Get this value is used if the task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection. |
List<Exit |
exitCodeRanges()
Get the exitCodeRanges value. |
List<Exit |
exitCodes()
Get the exitCodes value. |
Exit |
fileUploadError()
Get if the task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence. |
Exit |
preProcessingError()
Get the preProcessingError value. |
Exit |
withDefaultProperty(ExitOptions defaultProperty)
Set this value is used if the task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection. |
Exit |
withExitCodeRanges(List<ExitCodeRangeMapping> exitCodeRanges)
Set the exitCodeRanges value. |
Exit |
withExitCodes(List<ExitCodeMapping> exitCodes)
Set the exitCodes value. |
Exit |
withFileUploadError(ExitOptions fileUploadError)
Set if the task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence. |
Exit |
withPreProcessingError(ExitOptions preProcessingError)
Set the preProcessingError value. |
Method Details
defaultProperty
public ExitOptions defaultProperty()
Get this value is used if the task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection.
Returns:
exitCodeRanges
public List
Get the exitCodeRanges value.
Returns:
exitCodes
public List
Get the exitCodes value.
Returns:
fileUploadError
public ExitOptions fileUploadError()
Get if the task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence.
Returns:
preProcessingError
public ExitOptions preProcessingError()
Get the preProcessingError value.
Returns:
withDefaultProperty
public ExitConditions withDefaultProperty(ExitOptions defaultProperty)
Set this value is used if the task exits with any nonzero exit code not listed in the exitCodes or exitCodeRanges collection, with a pre-processing error if the preProcessingError property is not present, or with a file upload error if the fileUploadError property is not present. If you want non-default behavior on exit code 0, you must list it explicitly using the exitCodes or exitCodeRanges collection.
Parameters:
Returns:
withExitCodeRanges
public ExitConditions withExitCodeRanges(List
Set the exitCodeRanges value.
Parameters:
Returns:
withExitCodes
public ExitConditions withExitCodes(List
Set the exitCodes value.
Parameters:
Returns:
withFileUploadError
public ExitConditions withFileUploadError(ExitOptions fileUploadError)
Set if the task exited with an exit code that was specified via exitCodes or exitCodeRanges, and then encountered a file upload error, then the action specified by the exit code takes precedence.
Parameters:
Returns:
withPreProcessingError
public ExitConditions withPreProcessingError(ExitOptions preProcessingError)
Set the preProcessingError value.
Parameters:
Returns:
Applies to
Azure SDK for Java