public class ContainerStatus extends MappedObject
Docker container wait.MappedObject.ContentReader<C>| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Return the container exit status code.
|
java.lang.String |
getWaitingErrorMessage()
Return a message indicating an error waiting for a container to stop.
|
static ContainerStatus |
of(java.io.InputStream content)
Create a new
ContainerStatus instance from the specified JSON content
stream. |
static ContainerStatus |
of(int statusCode,
java.lang.String errorMessage)
Create a new
ContainerStatus instance with the specified values. |
public int getStatusCode()
public java.lang.String getWaitingErrorMessage()
public static ContainerStatus of(java.io.InputStream content) throws java.io.IOException
ContainerStatus instance from the specified JSON content
stream.content - the JSON content streamContainerStatus instancejava.io.IOException - on IO errorpublic static ContainerStatus of(int statusCode, java.lang.String errorMessage)
ContainerStatus instance with the specified values.statusCode - the status codeerrorMessage - the error messageContainerStatus instance