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.
|
String |
getWaitingErrorMessage()
Return a message indicating an error waiting for a container to stop.
|
static ContainerStatus |
of(InputStream content)
Create a new
ContainerStatus instance from the specified JSON content
stream. |
static ContainerStatus |
of(int statusCode,
String errorMessage)
Create a new
ContainerStatus instance with the specified values. |
public int getStatusCode()
public String getWaitingErrorMessage()
public static ContainerStatus of(InputStream content) throws IOException
ContainerStatus
instance from the specified JSON content
stream.content
- the JSON content streamContainerStatus
instanceIOException
- on IO errorpublic static ContainerStatus of(int statusCode, String errorMessage)
ContainerStatus
instance with the specified values.statusCode
- the status codeerrorMessage
- the error messageContainerStatus
instance