@ProviderType
public class ContainerConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerConfiguration.ContainerConfigurationBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ContainerConfiguration.ContainerConfigurationBuilder |
builder()
Creates a builder for creating a new
ContainerConfiguration instance. |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getContainerDevices()
Returns the list of devices that will be mapped to the container
|
java.util.List<java.lang.String> |
getContainerEnvVars()
Returns the list of environment properties that will be passed to the
container
|
java.lang.String |
getContainerImage()
Returns the base image for the associated container.
|
java.lang.String |
getContainerImageTag()
Returns the image tag for the associated container.
|
java.lang.String |
getContainerLoggingType()
Returns a string identifying which logger driver to use.
|
java.lang.String |
getContainerName()
Returns the container name
|
ContainerNetworkConfiguration |
getContainerNetworkConfiguration()
return the container's network configuration as a
ContainerNetworkConfiguration. |
java.util.List<ContainerPort> |
getContainerPorts()
Returns a list of
ContainerPort mapped to the container. |
java.util.List<java.lang.Integer> |
getContainerPortsExternal()
Deprecated.
since 2.5. Please use
getContainerPorts as it includes the network
protocol with the port mapping. |
java.util.List<java.lang.Integer> |
getContainerPortsInternal()
Deprecated.
since 2.5. Please use
getContainerPorts as it includes the network
protocol with the port mapping. |
java.util.Map<java.lang.String,java.lang.String> |
getContainerVolumes()
Returns a map that identifies the volumes and the internal container mapping
|
java.util.Optional<java.lang.Float> |
getCpus()
Return the cpus resources to be assigned to the container.
|
java.util.List<java.lang.String> |
getEntryPoint()
Returns a List
|
java.util.Optional<java.lang.String> |
getGpus()
Return the gpus to be assigned to the container.
|
ImageConfiguration |
getImageConfiguration()
Returns the
ImageConfiguration object |
int |
getImageDownloadTimeoutSeconds()
Returns the image download timeout (in seconds).
|
java.util.Map<java.lang.String,java.lang.String> |
getLoggerParameters()
Returns a Map that identifies configured logger parameters.
|
java.util.Optional<java.lang.Long> |
getMemory()
Return the memory to be assigned to the container.
|
java.util.Optional<RegistryCredentials> |
getRegistryCredentials()
Returns the Registry credentials.
|
boolean |
getRestartOnFailure()
Returns boolean which determines if container will restart on failure
|
int |
hashCode() |
boolean |
isContainerPrivileged()
Returns a boolean representing if the container runs or will run in
privileged mode.
|
boolean |
isFrameworkManaged()
The method will provide information if the container is or not managed by the
framework
|
public boolean isFrameworkManaged()
true if the framework manages the container.
false otherwisepublic java.lang.String getContainerName()
public java.util.List<ContainerPort> getContainerPorts()
ContainerPort mapped to the container.@Deprecated public java.util.List<java.lang.Integer> getContainerPortsExternal()
getContainerPorts as it includes the network
protocol with the port mapping.@Deprecated public java.util.List<java.lang.Integer> getContainerPortsInternal()
getContainerPorts as it includes the network
protocol with the port mapping.public java.util.List<java.lang.String> getContainerEnvVars()
public java.util.List<java.lang.String> getContainerDevices()
public java.util.Map<java.lang.String,java.lang.String> getContainerVolumes()
public boolean isContainerPrivileged()
public java.util.Map<java.lang.String,java.lang.String> getLoggerParameters()
public java.lang.String getContainerLoggingType()
public ImageConfiguration getImageConfiguration()
ImageConfiguration objectpublic java.lang.String getContainerImage()
ImageConfig class, provided by the
getImageConfiguration() method.public java.lang.String getContainerImageTag()
ImageConfig class, provided by the
getImageConfiguration() method.public java.util.Optional<RegistryCredentials> getRegistryCredentials()
ImageConfig class, provided by the
getImageConfiguration() method.public int getImageDownloadTimeoutSeconds()
ImageConfig class, provided by the
getImageConfiguration() method.public ContainerNetworkConfiguration getContainerNetworkConfiguration()
ContainerNetworkConfiguration.public java.util.List<java.lang.String> getEntryPoint()
public boolean getRestartOnFailure()
public java.util.Optional<java.lang.Long> getMemory()
public java.util.Optional<java.lang.Float> getCpus()
public java.util.Optional<java.lang.String> getGpus()
public static ContainerConfiguration.ContainerConfigurationBuilder builder()
ContainerConfiguration instance.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object