public class ContainerDetails extends Object implements InspectedContainer
Container.PortBinding
Constructor and Description |
---|
ContainerDetails(org.json.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
long |
getCreated() |
Map<String,String> |
getCustomNetworkIpAddresses()
Return IP Addresses of custom networks, mapped to the network name as the key.
|
Integer |
getExitCode()
Exit code of the container if it already has excited
|
String |
getHealthcheck() |
String |
getId() |
String |
getImage() |
String |
getIPAddress()
IP Adress of the container if provided
|
Map<String,String> |
getLabels() |
String |
getName() |
Map<String,Container.PortBinding> |
getPortBindings() |
boolean |
isHealthy()
The Health Status of this container (if applicable).
|
boolean |
isRunning() |
public long getCreated()
getCreated
in interface Container
public String getIPAddress()
Container
getIPAddress
in interface Container
null
if not provided.public Map<String,String> getCustomNetworkIpAddresses()
Container
getCustomNetworkIpAddresses
in interface Container
public Map<String,Container.PortBinding> getPortBindings()
getPortBindings
in interface Container
public Integer getExitCode()
Container
getExitCode
in interface Container
null
if it is still running. Also null,
if the implementation doesn't support an exit code.public boolean isHealthy()
InspectedContainer
isHealthy
in interface InspectedContainer
false
if the container has a configured healthcheck and has not the
Health Status "healthy". Returns true
otherwise.public String getHealthcheck()
getHealthcheck
in interface InspectedContainer
Copyright © 2020. All rights reserved.