1
1
package com .github .dockerjava .api .command ;
2
2
3
+ import com .github .dockerjava .api .model .BlkioRateDevice ;
4
+ import com .github .dockerjava .api .model .BlkioWeightDevice ;
5
+ import com .github .dockerjava .api .model .Device ;
6
+ import com .github .dockerjava .api .model .DeviceRequest ;
7
+ import com .github .dockerjava .api .model .RestartPolicy ;
8
+ import com .github .dockerjava .api .model .Ulimit ;
3
9
import com .github .dockerjava .api .model .UpdateContainerResponse ;
4
10
5
11
import javax .annotation .CheckForNull ;
6
12
import javax .annotation .Nonnull ;
13
+ import java .util .List ;
7
14
8
15
/**
9
16
* @author Kanstantsin Shautsou
@@ -13,22 +20,47 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
13
20
@ CheckForNull
14
21
String getContainerId ();
15
22
23
+ UpdateContainerCmd withContainerId (@ Nonnull String containerId );
24
+
16
25
@ CheckForNull
17
26
Integer getBlkioWeight ();
18
27
19
28
UpdateContainerCmd withBlkioWeight (Integer blkioWeight );
20
29
21
- UpdateContainerCmd withContainerId (@ Nonnull String containerId );
30
+ @ CheckForNull
31
+ List <BlkioWeightDevice > getBlkioWeightDevice ();
32
+
33
+ UpdateContainerCmd withBlkioWeightDevice (List <BlkioWeightDevice > blkioWeightDevice );
22
34
23
35
@ CheckForNull
24
- Integer getCpuPeriod ();
36
+ List < BlkioRateDevice > getBlkioDeviceReadBps ();
25
37
26
- UpdateContainerCmd withCpuPeriod ( Integer cpuPeriod );
38
+ UpdateContainerCmd withBlkioDeviceReadBps ( List < BlkioRateDevice > blkioDeviceReadBps );
27
39
28
40
@ CheckForNull
29
- Integer getCpuQuota ();
41
+ List < BlkioRateDevice > getBlkioDeviceWriteBps ();
30
42
31
- UpdateContainerCmd withCpuQuota (Integer cpuQuota );
43
+ UpdateContainerCmd withBlkioDeviceWriteBps (List <BlkioRateDevice > blkioDeviceWriteBps );
44
+
45
+ @ CheckForNull
46
+ List <BlkioRateDevice > getBlkioDeviceReadIOps ();
47
+
48
+ UpdateContainerCmd withBlkioDeviceReadIOps (List <BlkioRateDevice > blkioDeviceReadIOps );
49
+
50
+ @ CheckForNull
51
+ List <BlkioRateDevice > getBlkioDeviceWriteIOps ();
52
+
53
+ UpdateContainerCmd withBlkioDeviceWriteIOps (List <BlkioRateDevice > blkioDeviceWriteIOps );
54
+
55
+ @ CheckForNull
56
+ Long getCpuPeriod ();
57
+
58
+ UpdateContainerCmd withCpuPeriod (Long cpuPeriod );
59
+
60
+ @ CheckForNull
61
+ Long getCpuQuota ();
62
+
63
+ UpdateContainerCmd withCpuQuota (Long cpuQuota );
32
64
33
65
@ CheckForNull
34
66
String getCpusetCpus ();
@@ -45,6 +77,31 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
45
77
46
78
UpdateContainerCmd withCpuShares (Integer cpuShares );
47
79
80
+ @ CheckForNull
81
+ Long getCpuRealtimePeriod ();
82
+
83
+ UpdateContainerCmd withCpuRealtimePeriod (Long cpuRealtimePeriod );
84
+
85
+ @ CheckForNull
86
+ Long getCpuRealtimeRuntime ();
87
+
88
+ UpdateContainerCmd withCpuRealtimeRuntime (Long cpuRealtimeRuntime );
89
+
90
+ @ CheckForNull
91
+ List <Device > getDevices ();
92
+
93
+ UpdateContainerCmd withDevices (List <Device > devices );
94
+
95
+ @ CheckForNull
96
+ List <String > getDeviceCgroupRules ();
97
+
98
+ UpdateContainerCmd withDeviceCgroupRules (List <String > deviceCgroupRules );
99
+
100
+ @ CheckForNull
101
+ List <DeviceRequest > getDeviceRequests ();
102
+
103
+ UpdateContainerCmd withDeviceRequests (List <DeviceRequest > deviceRequests );
104
+
48
105
@ CheckForNull
49
106
Long getKernelMemory ();
50
107
@@ -65,6 +122,36 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
65
122
66
123
UpdateContainerCmd withMemorySwap (Long memorySwap );
67
124
125
+ @ CheckForNull
126
+ Long getNanoCPUs ();
127
+
128
+ UpdateContainerCmd withNanoCPUs (Long nanoCPUs );
129
+
130
+ @ CheckForNull
131
+ Boolean getOomKillDisable ();
132
+
133
+ UpdateContainerCmd withOomKillDisable (Boolean oomKillDisable );
134
+
135
+ @ CheckForNull
136
+ Boolean getInit ();
137
+
138
+ UpdateContainerCmd withInit (Boolean init );
139
+
140
+ @ CheckForNull
141
+ Long getPidsLimit ();
142
+
143
+ UpdateContainerCmd withPidsLimit (Long pidsLimit );
144
+
145
+ @ CheckForNull
146
+ List <Ulimit > getUlimits ();
147
+
148
+ UpdateContainerCmd withUlimits (List <Ulimit > ulimits );
149
+
150
+ @ CheckForNull
151
+ RestartPolicy getRestartPolicy ();
152
+
153
+ UpdateContainerCmd withRestartPolicy (RestartPolicy restartPolicy );
154
+
68
155
interface Exec extends DockerCmdSyncExec <UpdateContainerCmd , UpdateContainerResponse > {
69
156
}
70
157
}
0 commit comments