File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/main/java/com/github/dockerjava/api/model Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,15 @@ public class HostConfig {
6666 @ JsonProperty ("Ulimits" )
6767 private Ulimit [] ulimits ;
6868
69+ @ JsonProperty ("Memory" )
70+ private long memoryLimit = 0 ;
71+
72+ @ JsonProperty ("MemorySwap" )
73+ private long memorySwap = 0 ;
74+
75+ @ JsonProperty ("CpuShares" )
76+ private int cpuShares = 0 ;
77+
6978 public HostConfig () {
7079 }
7180
@@ -173,6 +182,18 @@ public Ulimit[] getUlimits() {
173182 return ulimits ;
174183 }
175184
185+ public long getMemoryLimit () {
186+ return memoryLimit ;
187+ }
188+
189+ public long getMemorySwap () {
190+ return memorySwap ;
191+ }
192+
193+ public int getCpuShares () {
194+ return cpuShares ;
195+ }
196+
176197 @ JsonIgnore
177198 public void setBinds (Bind ... binds ) {
178199 this .binds = new Binds (binds );
You can’t perform that action at this time.
0 commit comments