本文整理汇总了Java中com.github.dockerjava.api.command.PauseContainerCmd类的典型用法代码示例。如果您正苦于以下问题:Java PauseContainerCmd类的具体用法?Java PauseContainerCmd怎么用?Java PauseContainerCmd使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PauseContainerCmd类属于com.github.dockerjava.api.command包,在下文中一共展示了PauseContainerCmd类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
protected Void execute(PauseContainerCmd command) {
WebTarget webResource = getBaseResource().path("/containers/{id}/pause").resolveTemplate("id",
command.getContainerId());
LOGGER.trace("POST: {}", webResource);
webResource.request().accept(MediaType.APPLICATION_JSON).post(null).close();
return null;
}
示例2: execute
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
protected Void execute(PauseContainerCmd command) {
WebTarget webResource = getBaseResource().path("/containers/{id}/pause").resolveTemplate("id",
command.getContainerId());
LOGGER.trace("POST: {}", webResource);
webResource.request().accept(MediaType.APPLICATION_JSON).post(null);
return null;
}
示例3: createPauseContainerCmdExec
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd.Exec createPauseContainerCmdExec() {
return new PauseContainerCmdExec(getBaseResource(), getDockerClientConfig());
}
示例4: pauseContainerCmd
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd pauseContainerCmd(String containerId) {
return new PauseContainerCmdImpl(getDockerCmdExecFactory().createPauseContainerCmdExec(), containerId);
}
示例5: PauseContainerCmdImpl
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
public PauseContainerCmdImpl(PauseContainerCmd.Exec exec, String containerId) {
super(exec);
withContainerId(containerId);
}
示例6: withContainerId
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd withContainerId(String containerId) {
checkNotNull(containerId, "containerId was not specified");
this.containerId = containerId;
return this;
}
示例7: createPauseContainerCmdExec
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd.Exec createPauseContainerCmdExec() {
return delegate.createPauseContainerCmdExec();
}
示例8: executePauseContainerRequest
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
/**
* Produces a pause container request
*
* @param client
* @param message
* @return
*/
private PauseContainerCmd executePauseContainerRequest(DockerClient client, Message message) {
LOGGER.debug("Executing Docker Pause Container Request");
String containerId = DockerHelper.getProperty(DockerConstants.DOCKER_CONTAINER_ID, configuration, message, String.class);
ObjectHelper.notNull(containerId, "Container ID must be specified");
PauseContainerCmd pauseContainerCmd = client.pauseContainerCmd(containerId);
return pauseContainerCmd;
}
示例9: pauseContainerCmd
import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
PauseContainerCmd pauseContainerCmd(String containerId);