File tree Expand file tree Collapse file tree 2 files changed +21
-28
lines changed
src/main/java/com/github/dockerjava/api/model Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ public class ContainerConfig {
2828 @ JsonProperty ("Cmd" )
2929 private String [] cmd ;
3030
31- @ JsonProperty ("CpuShares" )
32- private int cpuShares = 0 ;
33-
34- @ JsonProperty ("Cpuset" )
35- private String cpuset = "" ;
36-
3731 @ JsonProperty ("Domainname" )
3832 private String domainName = "" ;
3933
@@ -58,12 +52,6 @@ public class ContainerConfig {
5852 @ JsonProperty ("MacAddress" )
5953 private String macAddress ;
6054
61- @ JsonProperty ("Memory" )
62- private long memoryLimit = 0 ;
63-
64- @ JsonProperty ("MemorySwap" )
65- private long memorySwap = 0 ;
66-
6755 @ JsonProperty ("NetworkDisabled" )
6856 private boolean networkDisabled = false ;
6957
@@ -136,22 +124,6 @@ public String getMacAddress() {
136124 return macAddress ;
137125 }
138126
139- public long getMemoryLimit () {
140- return memoryLimit ;
141- }
142-
143- public long getMemorySwap () {
144- return memorySwap ;
145- }
146-
147- public int getCpuShares () {
148- return cpuShares ;
149- }
150-
151- public String getCpuset () {
152- return cpuset ;
153- }
154-
155127 public boolean isAttachStdin () {
156128 return attachStdin ;
157129 }
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