forked from mwiede/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatsCmd.java
More file actions
26 lines (18 loc) · 716 Bytes
/
Copy pathStatsCmd.java
File metadata and controls
26 lines (18 loc) · 716 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
package com.github.dockerjava.api.command;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import com.github.dockerjava.api.model.Statistics;
/**
* Get container stats. The result of {@link Statistics} is handled asynchronously because the docker remote API will block when a container
* is stopped until the container is up again.
*/
public interface StatsCmd extends AsyncDockerCmd<StatsCmd, Statistics> {
@CheckForNull
String getContainerId();
StatsCmd withContainerId(@Nonnull String containerId);
@CheckForNull
Boolean hasNoStream();
StatsCmd withNoStream(boolean noStream);
interface Exec extends DockerCmdAsyncExec<StatsCmd, Statistics> {
}
}