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
- Author:
- Scott Frederick
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.buildpack.platform.json.MappedObject
MappedObject.ContentReader<C>
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the container exit status code.Return a message indicating an error waiting for a container to stop.static ContainerStatus
Create a newContainerStatus
instance with the specified values.static ContainerStatus
of
(InputStream content) Create a newContainerStatus
instance from the specified JSON content stream.Methods inherited from class org.springframework.boot.buildpack.platform.json.MappedObject
childrenAt, getNode, getRoot, of, of, of, valueAt, valueAt
-
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 newContainerStatus
instance from the specified JSON content stream.- Parameters:
content
- the JSON content stream- Returns:
- a new
ContainerStatus
instance - Throws:
IOException
- on IO error
-
of
Create a newContainerStatus
instance with the specified values.- Parameters:
statusCode
- the status codeerrorMessage
- the error message- Returns:
- a new
ContainerStatus
instance
-