com.github.dockerjava.api.model.ContainerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.api.model;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ContainerConfig {
@JsonProperty("AttachStderr")
private boolean attachStderr = false;
@JsonProperty("AttachStdin")
private boolean attachStdin = false;
@JsonProperty("AttachStdout")
private boolean attachStdout = false;
@JsonProperty("Cmd")
private String[] cmd;
@JsonProperty("CpuShares")
private int cpuShares = 0;
@JsonProperty("Cpuset")
private String cpuset = "";
@JsonProperty("Domainname")
private String domainName = "";
@JsonProperty("Entrypoint")
private String[] entrypoint = new String[] {};
@JsonProperty("Env")
private String[] env;
@JsonProperty("ExposedPorts")
private ExposedPorts exposedPorts;
@JsonProperty("Hostname")
private String hostName = "";
@JsonProperty("Image")
private String image;
@JsonProperty("Memory")
private long memoryLimit = 0;
@JsonProperty("MemorySwap")
private long memorySwap = 0;
@JsonProperty("NetworkDisabled")
private boolean networkDisabled = false;
@JsonProperty("OnBuild")
private int[] onBuild;
@JsonProperty("OpenStdin")
private boolean stdinOpen = false;
@JsonProperty("PortSpecs")
private String[] portSpecs;
@JsonProperty("StdinOnce")
private boolean stdInOnce = false;
@JsonProperty("Tty")
private boolean tty = false;
@JsonProperty("User")
private String user = "";
@JsonProperty("Volumes")
private Map volumes;
@JsonProperty("WorkingDir")
private String workingDir = "";
@JsonIgnore
public ExposedPort[] getExposedPorts() {
return exposedPorts.getExposedPorts();
}
public boolean isNetworkDisabled() {
return networkDisabled;
}
public String getDomainName() {
return domainName;
}
public String getWorkingDir() {
return workingDir;
}
public String getHostName() {
return hostName;
}
public String[] getPortSpecs() {
return portSpecs;
}
public String getUser() {
return user;
}
public boolean isTty() {
return tty;
}
public boolean isStdinOpen() {
return stdinOpen;
}
public boolean isStdInOnce() {
return stdInOnce;
}
public long getMemoryLimit() {
return memoryLimit;
}
public long getMemorySwap() {
return memorySwap;
}
public int getCpuShares() {
return cpuShares;
}
public String getCpuset() {
return cpuset;
}
public boolean isAttachStdin() {
return attachStdin;
}
public boolean isAttachStdout() {
return attachStdout;
}
public boolean isAttachStderr() {
return attachStderr;
}
public String[] getEnv() {
return env;
}
public String[] getCmd() {
return cmd;
}
public String getImage() {
return image;
}
public Map getVolumes() {
return volumes;
}
public String[] getEntrypoint() {
return entrypoint;
}
public int[] getOnBuild() {
return onBuild;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy