Class ContainerStatus
java.lang.Object
org.springframework.boot.buildpack.platform.json.MappedObject
org.springframework.boot.buildpack.platform.docker.type.ContainerStatus
Status details returned from
Docker container wait.- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.buildpack.platform.json.MappedObject
MappedObject.ContentReader<C> -
Method Summary
Modifier and TypeMethodDescriptionintReturn the container exit status code.Return a message indicating an error waiting for a container to stop.static ContainerStatusCreate a newContainerStatusinstance with the specified values.static ContainerStatusof(InputStream content) Create a newContainerStatusinstance from the specified JSON content stream.
-
Method Details
-
getStatusCode
public int getStatusCode()Return the container exit status code.- Returns:
- the exit status code
-
getWaitingErrorMessage
Return a message indicating an error waiting for a container to stop.- Returns:
- the waiting error message
-
of
Create a newContainerStatusinstance from the specified JSON content stream.- Parameters:
content- the JSON content stream- Returns:
- a new
ContainerStatusinstance - Throws:
IOException- on IO error
-
of
Create a newContainerStatusinstance with the specified values.- Parameters:
statusCode- the status codeerrorMessage- the error message- Returns:
- a new
ContainerStatusinstance
-