All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.docker.message.container.atom.HostConfig Maven / Gradle / Ivy

Go to download

By encapsulating the Docker API enables developers to use Java can quickly developed the control and operation of the Docker application, using streaming operation, simple and clear.

The newest version!
package org.voovan.docker.message.container.atom;

import org.voovan.docker.message.service.atom.Mount;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 * @author helyho
 * 

* DockerFly Framework. * WebSite: https://git.oschina.net/helyho/JDocker * Licence: Apache v2 License */ public class HostConfig { private Integer cpuShares; private Integer cpuPeriod; private Integer cpuQuota; private String cpusetCpus; private Long memory; private Integer memorySwap; private Integer memoryReservation; private Integer memorySwappiness; private Integer kernelMemory; private RestartPolicy restartPolicy; private String networkMode; private Boolean publishAllPorts; private Boolean privileged; private List dns; private List dnsOptions; private List dnsSearch; private List extraHosts; private List binds; private List volumesFrom; private List links; private List devices; private Map>> portBindings; private ArrayList ulimits; private Integer blkioWeight; private ArrayList blkioWeightDevice; private ArrayList blkioDeviceReadBps; private ArrayList blkioDeviceWriteBps; private ArrayList blkioDeviceReadIOps; private ArrayList blkioDeviceWiiteIOps; private Integer diskQuota; private LogConfig logConfig; private Integer shmSize; private Boolean readonlyRootfs; private String pidMode; private Map storageOpt; private Map sysctls ; //v1.25 private Long nanoCPUs; //v1.25 private List mounts; //v1.25 private Boolean autoRemove; public HostConfig() { cpuPeriod = 100000; blkioWeight = null; dns = new ArrayList(); binds = new ArrayList(); links = new ArrayList(); devices = new ArrayList(); volumesFrom = new ArrayList(); portBindings = new HashMap>>(); ulimits = new ArrayList(); blkioWeightDevice = new ArrayList(); blkioDeviceReadBps = new ArrayList(); blkioDeviceWriteBps = new ArrayList(); blkioDeviceReadIOps = new ArrayList(); blkioDeviceWiiteIOps = new ArrayList(); restartPolicy = new RestartPolicy(); //1.25 mounts = new ArrayList(); //1.25 autoRemove = false; } public Integer getCpuShares() { return cpuShares; } public void setCpuShares(Integer cpuShares) { this.cpuShares = cpuShares; } public Integer getCpuPeriod() { return cpuPeriod; } public void setCpuPeriod(Integer cpuPeriod) { this.cpuPeriod = cpuPeriod; } public Integer getCpuQuota() { return cpuQuota; } public void setCpuQuota(Integer cpuQuota) { this.cpuQuota = cpuQuota; } public String getCpusetCpus() { return cpusetCpus; } public void setCpusetCpus(String cpusetCpus) { this.cpusetCpus = cpusetCpus; } public Long getMemory() { return memory; } public void setMemory(Long memory) { this.memory = memory; } public Integer getMemorySwap() { return memorySwap; } public void setMemorySwap(Integer memorySwap) { this.memorySwap = memorySwap; } public Integer getMemoryReservation() { return memoryReservation; } public void setMemoryReservation(Integer memoryReservation) { this.memoryReservation = memoryReservation; } public Integer getKernelMemory() { return kernelMemory; } public void setKernelMemory(Integer kernelMemory) { this.kernelMemory = kernelMemory; } public RestartPolicy getRestartPolicy() { return restartPolicy; } public void setRestartPolicy(RestartPolicy restartPolicy) { this.restartPolicy = restartPolicy; } public String getNetworkMode() { return networkMode; } public void setNetworkMode(String networkMode) { this.networkMode = networkMode; } public Boolean isPublishAllPorts() { return publishAllPorts; } public void setPublishAllPorts(Boolean publishAllPorts) { this.publishAllPorts = publishAllPorts; } public Boolean isPrivileged() { return privileged; } public void setPrivileged(Boolean privileged) { this.privileged = privileged; } public List getDns() { return dns; } public void setDns(List dns) { this.dns = dns; } public List getBinds() { return binds; } public void setBinds(List binds) { this.binds = binds; } public List getVolumesFrom() { return volumesFrom; } public void setVolumesFrom(List volumesFrom) { this.volumesFrom = volumesFrom; } public List getLinks() { return links; } public void setLinks(List links) { this.links = links; } public List getDevices() { return devices; } public void setDevices(List devices) { this.devices = devices; } public Map>> getPortBindings() { return portBindings; } public void setPortBindings(Map>> portBindings) { this.portBindings = portBindings; } public ArrayList getUlimits() { return ulimits; } public void setUlimits(ArrayList ulimits) { this.ulimits = ulimits; } public Integer getBlkioWeight() { return blkioWeight; } public void setBlkioWeight(Integer blkioWeight) { this.blkioWeight = blkioWeight; } public ArrayList getBlkioWeightDevice() { return blkioWeightDevice; } public void setBlkioWeightDevice(ArrayList blkioWeightDevice) { this.blkioWeightDevice = blkioWeightDevice; } public ArrayList getBlkioDeviceReadBps() { return blkioDeviceReadBps; } public void setBlkioDeviceReadBps(ArrayList blkioDeviceReadBps) { this.blkioDeviceReadBps = blkioDeviceReadBps; } public ArrayList getBlkioDeviceWriteBps() { return blkioDeviceWriteBps; } public void setBlkioDeviceWriteBps(ArrayList blkioDeviceWriteBps) { this.blkioDeviceWriteBps = blkioDeviceWriteBps; } public ArrayList getBlkioDeviceReadIOps() { return blkioDeviceReadIOps; } public void setBlkioDeviceReadIOps(ArrayList blkioDeviceReadIOps) { this.blkioDeviceReadIOps = blkioDeviceReadIOps; } public ArrayList getBlkioDeviceWiiteIOps() { return blkioDeviceWiiteIOps; } public void setBlkioDeviceWiiteIOps(ArrayList blkioDeviceWiiteIOps) { this.blkioDeviceWiiteIOps = blkioDeviceWiiteIOps; } public Integer getDiskQuota() { return diskQuota; } public void setDiskQuota(Integer diskQuota) { this.diskQuota = diskQuota; } public LogConfig getLogConfig() { return logConfig; } public void setLogConfig(LogConfig logConfig) { this.logConfig = logConfig; } public Integer getMemorySwappiness() { return memorySwappiness; } public void setMemorySwappiness(Integer memorySwappiness) { this.memorySwappiness = memorySwappiness; } public List getDnsOptions() { return dnsOptions; } public void setDnsOptions(List dnsOptions) { this.dnsOptions = dnsOptions; } public List getDnsSearch() { return dnsSearch; } public void setDnsSearch(List dnsSearch) { this.dnsSearch = dnsSearch; } public List getExtraHosts() { return extraHosts; } public void setExtraHosts(List extraHosts) { this.extraHosts = extraHosts; } public String getPidMode() { return pidMode; } public void setPidMode(String pidMode) { this.pidMode = pidMode; } public Map getStorageOpt() { return storageOpt; } public void setStorageOpt(Map storageOpt) { this.storageOpt = storageOpt; } public Map getSysctls() { return sysctls; } public void setSysctls(Map sysctls) { this.sysctls = sysctls; } public Integer getShmSize() { return shmSize; } public void setShmSize(Integer shmSize) { this.shmSize = shmSize; } public Boolean isReadonlyRootfs() { return readonlyRootfs; } public void setReadonlyRootfs(Boolean readonlyRootfs) { this.readonlyRootfs = readonlyRootfs; } //v1.25 public Long getNanoCPUs() { return nanoCPUs; } //v1.25 public void setNanoCPUs(Long nanoCPUs) { this.nanoCPUs = nanoCPUs; } //1.25 public List getMounts() { return mounts; } //1.25 public void setMounts(List mounts) { this.mounts = mounts; } //v1.25 public Boolean isAutoRemove() { return autoRemove; } //v1.25 public void setAutoRemove(Boolean autoRemove) { this.autoRemove = autoRemove; } //v1.25 public void setAutoRemove(boolean autoRemove) { this.autoRemove = autoRemove; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy