ExitConditions Class
- java.
lang. Object - com.
azure. compute. batch. models. ExitConditions
- com.
Implements
public final class ExitConditions
implements JsonSerializable<ExitConditions>
Specifies how the Batch service should respond when the Task completes.
Constructor Summary
| Constructor | Description |
|---|---|
| ExitConditions() |
Creates an instance of Exit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Exit |
fromJson(JsonReader jsonReader)
Reads an instance of Exit |
|
Exit |
getDefaultProperty()
Get the default |
|
List<Exit |
getExitCodeRanges()
Get the exit |
|
List<Exit |
getExitCodes()
Get the exit |
|
Exit |
getFileUploadError()
Get the file |
|
Exit |
getPreProcessingError()
Get the pre |
|
Exit |
setDefaultProperty(ExitOptions defaultProperty)
Set the default |
|
Exit |
setExitCodeRanges(List<ExitCodeRangeMapping> exitCodeRanges)
Set the exit |
|
Exit |
setExitCodes(List<ExitCodeMapping> exitCodes)
Set the exit |
|
Exit |
setFileUploadError(ExitOptions fileUploadError)
Set the file |
|
Exit |
setPreProcessingError(ExitOptions preProcessingError)
Set the pre |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ExitConditions
public ExitConditions()
Creates an instance of ExitConditions class.
Method Details
fromJson
public static ExitConditions fromJson(JsonReader jsonReader)
Reads an instance of ExitConditions from the JsonReader.
Parameters:
Returns:
Throws:
getDefaultProperty
public ExitOptions getDefaultProperty()
Get the defaultProperty property: How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties. 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:
getExitCodeRanges
public List<ExitCodeRangeMapping> getExitCodeRanges()
Get the exitCodeRanges property: A list of Task exit code ranges and how the Batch service should respond to them.
Returns:
getExitCodes
public List<ExitCodeMapping> getExitCodes()
Get the exitCodes property: A list of individual Task exit codes and how the Batch service should respond to them.
Returns:
getFileUploadError
public ExitOptions getFileUploadError()
Get the fileUploadError property: How the Batch service should respond if a file upload error occurs. 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:
getPreProcessingError
public ExitOptions getPreProcessingError()
Get the preProcessingError property: How the Batch service should respond if the Task fails to start due to an error.
Returns:
setDefaultProperty
public ExitConditions setDefaultProperty(ExitOptions defaultProperty)
Set the defaultProperty property: How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties. 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:
setExitCodeRanges
public ExitConditions setExitCodeRanges(List<ExitCodeRangeMapping> exitCodeRanges)
Set the exitCodeRanges property: A list of Task exit code ranges and how the Batch service should respond to them.
Parameters:
Returns:
setExitCodes
public ExitConditions setExitCodes(List<ExitCodeMapping> exitCodes)
Set the exitCodes property: A list of individual Task exit codes and how the Batch service should respond to them.
Parameters:
Returns:
setFileUploadError
public ExitConditions setFileUploadError(ExitOptions fileUploadError)
Set the fileUploadError property: How the Batch service should respond if a file upload error occurs. 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:
setPreProcessingError
public ExitConditions setPreProcessingError(ExitOptions preProcessingError)
Set the preProcessingError property: How the Batch service should respond if the Task fails to start due to an error.
Parameters:
Returns: