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.
Constructor Summary
Constructor | Description | |
---|---|---|
ExitConditions() |
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 exit |
List<Exit |
exitCodeRanges()
Get the exit |
List<Exit |
exitCodes()
Get the exit |
Exit |
fileUploadError()
Get if the Task exited with an exit code that was specified via exit |
Exit |
preProcessingError()
Get the pre |
Exit |
withDefaultProperty(ExitOptions defaultProperty)
Set this value is used if the Task exits with any nonzero exit code not listed in the exit |
Exit |
withExitCodeRanges(List<ExitCodeRangeMapping> exitCodeRanges)
Set the exit |
Exit |
withExitCodes(List<ExitCodeMapping> exitCodes)
Set the exit |
Exit |
withFileUploadError(ExitOptions fileUploadError)
Set if the Task exited with an exit code that was specified via exit |
Exit |
withPreProcessingError(ExitOptions preProcessingError)
Set the pre |
Methods inherited from java.lang.Object
Constructor Details
ExitConditions
public ExitConditions()
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