forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerDiffCmdImpl.java
More file actions
53 lines (44 loc) · 1.49 KB
/
Copy pathContainerDiffCmdImpl.java
File metadata and controls
53 lines (44 loc) · 1.49 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
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.List;
import com.github.dockerjava.api.command.ContainerDiffCmd;
import com.github.dockerjava.api.exception.DockerException;
import com.github.dockerjava.api.exception.InternalServerErrorException;
import com.github.dockerjava.api.exception.NotFoundException;
import com.github.dockerjava.api.model.ChangeLog;
/**
* Inspect changes on a container's filesystem
*
* @param containerId
* - Id of the container
*
*/
public class ContainerDiffCmdImpl extends AbstrDockerCmd<ContainerDiffCmd, List<ChangeLog>> implements ContainerDiffCmd {
private String containerId;
public ContainerDiffCmdImpl(ContainerDiffCmd.Exec exec, String containerId) {
super(exec);
withContainerId(containerId);
}
@Override
public String getContainerId() {
return containerId;
}
@Override
public ContainerDiffCmdImpl withContainerId(String containerId) {
checkNotNull(containerId, "containerId was not specified");
this.containerId = containerId;
return this;
}
/**
* @throws NotFoundException
* No such container
* @throws InternalServerErrorException
* server error
* @throws DockerException
* unexpected http status code
*/
@Override
public List<ChangeLog> exec() throws NotFoundException {
return super.exec();
}
}