com.github.dockerjava.core.command.StatsCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import static com.google.common.base.Preconditions.checkNotNull;
import com.github.dockerjava.api.command.StatsCmd;
import com.github.dockerjava.api.model.Statistics;
/**
* Container stats
*/
public class StatsCmdImpl extends AbstrAsyncDockerCmd implements StatsCmd {
private String containerId;
public StatsCmdImpl(StatsCmd.Exec exec, String containerId) {
super(exec);
withContainerId(containerId);
}
@Override
public StatsCmd withContainerId(String containerId) {
checkNotNull(containerId, "containerId was not specified");
this.containerId = containerId;
return this;
}
@Override
public String getContainerId() {
return containerId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy