Share via


BatchTaskContainerExecutionInfo Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskContainerExecutionInfo

Implements

public final class BatchTaskContainerExecutionInfo
implements JsonSerializable<BatchTaskContainerExecutionInfo>

Contains information about the container which a Task is executing.

Method Summary

Modifier and Type Method and Description
static BatchTaskContainerExecutionInfo fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskContainerExecutionInfo from the JsonReader.

String getContainerId()

Get the containerId property: The ID of the container.

String getError()

Get the error property: Detailed error information about the container.

String getState()

Get the state property: The state of the container.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskContainerExecutionInfo fromJson(JsonReader jsonReader)

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.

getContainerId

public String getContainerId()

Get the containerId property: The ID of the container.

Returns:

the containerId value.

getError

public String 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.

getState

public String 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to