本文整理匯總了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);