forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResizeExecCmdImpl.java
More file actions
58 lines (44 loc) · 1.26 KB
/
Copy pathResizeExecCmdImpl.java
File metadata and controls
58 lines (44 loc) · 1.26 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.ResizeExecCmd;
import com.github.dockerjava.api.exception.NotFoundException;
import static com.google.common.base.Preconditions.checkNotNull;
public class ResizeExecCmdImpl extends AbstrDockerCmd<ResizeExecCmd, Void> implements ResizeExecCmd {
private String execId;
private Integer height;
private Integer width;
public ResizeExecCmdImpl(ResizeExecCmd.Exec exec, String execId) {
super(exec);
withExecId(execId);
}
@Override
public String getExecId() {
return execId;
}
@Override
public Integer getHeight() {
return height;
}
@Override
public Integer getWidth() {
return width;
}
@Override
public ResizeExecCmd withExecId(String execId) {
checkNotNull(execId, "execId was not specified");
this.execId = execId;
return this;
}
@Override
public ResizeExecCmd withSize(int height, int width) {
this.height = height;
this.width = width;
return this;
}
/**
* @throws NotFoundException no such exec instance
*/
@Override
public Void exec() throws NotFoundException {
return super.exec();
}
}