ExitConditions 类

定义

Specifies how the Batch service should respond when the task completes.

public class ExitConditions
继承
java.lang.Object
ExitConditions

方法

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.

exitCodeRanges()

Get the exitCodeRanges value.

exitCodes()

Get the exitCodes value.

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.

preProcessingError()

Get the preProcessingError value.

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.

withExitCodeRanges(List<ExitCodeRangeMapping> exitCodeRanges)

Set the exitCodeRanges value.

withExitCodes(List<ExitCodeMapping> exitCodes)

Set the exitCodes value.

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.

withPreProcessingError(ExitOptions preProcessingError)

Set the preProcessingError value.

适用于