Package com.azure.compute.batch.models
Class BatchTaskContainerExecutionInfo
java.lang.Object
com.azure.compute.batch.models.BatchTaskContainerExecutionInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>
public final class BatchTaskContainerExecutionInfo
extends Object
implements com.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>
Contains information about the container which a Task is executing.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskContainerExecutionInfo from the JsonReader.Get the containerId property: The ID of the container.getError()Get the error property: Detailed error information about the container.getState()Get the state property: The state of the container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getContainerId
Get the containerId property: The ID of the container.- Returns:
- the containerId value.
-
getState
Get the state property: The state of the container. This is the state of the container according to the Docker service. It is equivalent to the status field returned by "docker inspect".- Returns:
- the state value.
-
getError
Get the error property: Detailed error information about the container. This is the detailed error string from the Docker service, if available. It is equivalent to the error field returned by "docker inspect".- Returns:
- the error value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchTaskContainerExecutionInfo>- Throws:
IOException
-
fromJson
public static BatchTaskContainerExecutionInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchTaskContainerExecutionInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchTaskContainerExecutionInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the BatchTaskContainerExecutionInfo.
-