当前位置: 首页>>代码示例>>Java>>正文


Java PauseContainerCmd类代码示例

本文整理汇总了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;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:11,代码来源:PauseContainerCmdExec.java

示例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;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:11,代码来源:PauseContainerCmdExec.java

示例3: createPauseContainerCmdExec

import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd.Exec createPauseContainerCmdExec() {
    return new PauseContainerCmdExec(getBaseResource(), getDockerClientConfig());
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:5,代码来源:JerseyDockerCmdExecFactory.java

示例4: pauseContainerCmd

import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd pauseContainerCmd(String containerId) {
    return new PauseContainerCmdImpl(getDockerCmdExecFactory().createPauseContainerCmdExec(), containerId);
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:5,代码来源:DockerClientImpl.java

示例5: PauseContainerCmdImpl

import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
public PauseContainerCmdImpl(PauseContainerCmd.Exec exec, String containerId) {
    super(exec);
    withContainerId(containerId);
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:5,代码来源:PauseContainerCmdImpl.java

示例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;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:7,代码来源:PauseContainerCmdImpl.java

示例7: createPauseContainerCmdExec

import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
@Override
public PauseContainerCmd.Exec createPauseContainerCmdExec() {
    return delegate.createPauseContainerCmdExec();
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:5,代码来源:TestDockerCmdExecFactory.java

示例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;

}
 
开发者ID:HydAu,项目名称:Camel,代码行数:21,代码来源:DockerProducer.java

示例9: pauseContainerCmd

import com.github.dockerjava.api.command.PauseContainerCmd; //导入依赖的package包/类
PauseContainerCmd pauseContainerCmd(String containerId); 
开发者ID:docker-java,项目名称:docker-java,代码行数:2,代码来源:DockerClient.java


注:本文中的com.github.dockerjava.api.command.PauseContainerCmd类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。