ExitCodeMapping Class
- java.
lang. Object - com.
azure. compute. batch. models. ExitCodeMapping
- com.
Implements
public final class ExitCodeMapping
implements JsonSerializable<ExitCodeMapping>
How the Batch service should respond if a Task exits with a particular exit code.
Constructor Summary
| Constructor | Description |
|---|---|
| ExitCodeMapping(int code, ExitOptions exitOptions) |
Creates an instance of Exit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Exit |
fromJson(JsonReader jsonReader)
Reads an instance of Exit |
| int |
getCode()
Get the code property: A process exit code. |
|
Exit |
getExitOptions()
Get the exit |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ExitCodeMapping
public ExitCodeMapping(int code, ExitOptions exitOptions)
Creates an instance of ExitCodeMapping class.
Parameters:
Method Details
fromJson
public static ExitCodeMapping fromJson(JsonReader jsonReader)
Reads an instance of ExitCodeMapping from the JsonReader.
Parameters:
Returns:
Throws:
getCode
public int getCode()
Get the code property: A process exit code.
Returns:
getExitOptions
public ExitOptions getExitOptions()
Get the exitOptions property: How the Batch service should respond if the Task exits with this exit code.
Returns: