當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。