forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatsCmdImpl.java
More file actions
43 lines (33 loc) · 991 Bytes
/
Copy pathStatsCmdImpl.java
File metadata and controls
43 lines (33 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.github.dockerjava.core.command;
import java.util.Objects;
import com.github.dockerjava.api.command.StatsCmd;
import com.github.dockerjava.api.model.Statistics;
/**
* Container stats
*/
public class StatsCmdImpl extends AbstrAsyncDockerCmd<StatsCmd, Statistics> implements StatsCmd {
private String containerId;
private Boolean noStream;
public StatsCmdImpl(StatsCmd.Exec exec, String containerId) {
super(exec);
withContainerId(containerId);
}
@Override
public StatsCmd withContainerId(String containerId) {
this.containerId = Objects.requireNonNull(containerId, "containerId was not specified");
return this;
}
@Override
public String getContainerId() {
return containerId;
}
@Override
public Boolean hasNoStream() {
return noStream;
}
@Override
public StatsCmd withNoStream(boolean noStream) {
this.noStream = noStream;
return this;
}
}