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


Java RemoveNetworkCmd类代码示例

本文整理汇总了Java中com.github.dockerjava.api.command.RemoveNetworkCmd的典型用法代码示例。如果您正苦于以下问题:Java RemoveNetworkCmd类的具体用法?Java RemoveNetworkCmd怎么用?Java RemoveNetworkCmd使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RemoveNetworkCmd类属于com.github.dockerjava.api.command包,在下文中一共展示了RemoveNetworkCmd类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: run

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
protected Void run() throws Exception {
  RemoveNetworkCmd removeCmd = dockerClient.removeNetworkCmd(name);

  try  {
    return removeCmd.exec();
  } finally {
    removeCmd.close();
  }
}
 
开发者ID:Qorr,项目名称:Hvalspik,代码行数:11,代码来源:RemoveNetworkCommand.java

示例2: execute

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
protected Void execute(RemoveNetworkCmd command) {
    WebTarget webTarget = getBaseResource().path("/networks/" + command.getNetworkId());

    LOGGER.trace("DELETE: {}", webTarget);
    webTarget.request().accept(MediaType.APPLICATION_JSON).delete();

    return null;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:10,代码来源:RemoveNetworkCmdExec.java

示例3: createRemoveNetworkCmdExec

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
public RemoveNetworkCmd.Exec createRemoveNetworkCmdExec() {
    return new RemoveNetworkCmd.Exec() {
        @Override
        public Void exec(RemoveNetworkCmd command) {
            delegate.createRemoveNetworkCmdExec().exec(command);
            networkIds.remove(command.getNetworkId());
            return null;
        }
    };
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:12,代码来源:TestDockerCmdExecFactory.java

示例4: createRemoveNetworkCmdExec

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
public RemoveNetworkCmd.Exec createRemoveNetworkCmdExec() {

    return new RemoveNetworkCmdExec(getBaseResource(), getDockerClientConfig());
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:6,代码来源:JerseyDockerCmdExecFactory.java

示例5: removeNetworkCmd

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

示例6: createRemoveNetworkCmdExec

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

示例7: RemoveNetworkCmdImpl

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
public RemoveNetworkCmdImpl(DockerCmdSyncExec<RemoveNetworkCmd, Void> execution, String networkId) {
    super(execution);
    withNetworkId(networkId);
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:5,代码来源:RemoveNetworkCmdImpl.java

示例8: withNetworkId

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
public RemoveNetworkCmd withNetworkId(String networkId) {
    this.networkId = networkId;
    return this;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:6,代码来源:RemoveNetworkCmdImpl.java

示例9: execute

import com.github.dockerjava.api.command.RemoveNetworkCmd; //导入依赖的package包/类
@Override
protected Void execute(RemoveNetworkCmd command) {

    WebTarget webTarget = getBaseResource().path("/networks/" + command.getNetworkId());

    LOGGER.trace("DELETE: {}", webTarget);
    webTarget.request().accept(MediaType.APPLICATION_JSON).delete().close();

    return null;
}
 
开发者ID:docker-java,项目名称:docker-java,代码行数:11,代码来源:RemoveNetworkCmdExec.java

示例10: removeNetworkCmd

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


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