Package io.fabric8.maven.docker.model
Class ContainerDetails
- java.lang.Object
-
- io.fabric8.maven.docker.model.ContainerDetails
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.maven.docker.model.Container
Container.PortBinding
-
-
Constructor Summary
Constructors Constructor Description ContainerDetails(com.google.gson.JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreated()Map<String,String>getCustomNetworkIpAddresses()Return IP Addresses of custom networks, mapped to the network name as the key.IntegergetExitCode()Exit code of the container if it already has excitedStringgetHealthcheck()StringgetId()StringgetImage()StringgetIPAddress()IP Adress of the container if providedMap<String,String>getLabels()StringgetName()StringgetNetworkMode()Map<String,Container.PortBinding>getPortBindings()booleanisHealthy()booleanisRunning()
-
-
-
Method Detail
-
getCreated
public long getCreated()
- Specified by:
getCreatedin interfaceContainer
-
getIPAddress
public String getIPAddress()
Description copied from interface:ContainerIP Adress of the container if provided- Specified by:
getIPAddressin interfaceContainer- Returns:
- the IP address of the container or
nullif not provided.
-
getNetworkMode
public String getNetworkMode()
- Specified by:
getNetworkModein interfaceContainer
-
getCustomNetworkIpAddresses
public Map<String,String> getCustomNetworkIpAddresses()
Description copied from interface:ContainerReturn IP Addresses of custom networks, mapped to the network name as the key.- Specified by:
getCustomNetworkIpAddressesin interfaceContainer- Returns:
- The mapping of network names to IP addresses, or null it none provided.
-
getPortBindings
public Map<String,Container.PortBinding> getPortBindings()
- Specified by:
getPortBindingsin interfaceContainer
-
getExitCode
public Integer getExitCode()
Description copied from interface:ContainerExit code of the container if it already has excited- Specified by:
getExitCodein interfaceContainer- Returns:
- exit code if the container has excited,
nullif it is still running. Also null, if the implementation doesn't support an exit code.
-
isHealthy
public boolean isHealthy()
-
getHealthcheck
public String getHealthcheck()
-
-