org.jclouds.Context.close()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(201)

本文整理了Java中org.jclouds.Context.close()方法的一些代码示例,展示了Context.close()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.close()方法的具体详情如下:
包路径:org.jclouds.Context
类名称:Context
方法名:close

Context.close介绍

[英]Closes all connections, including executor service
[中]关闭所有连接,包括executor服务

代码示例

代码示例来源:origin: jclouds/legacy-jclouds

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: Nextdoor/bender

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: org.apache.jclouds/jclouds-compute

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: apache/jclouds

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: org.apache.jclouds.api/openstack-swift

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: io.cloudsoft.jclouds/jclouds-compute

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: org.jclouds.api/chef

@Override
public void close() throws IOException {
 delegate().close();
}

代码示例来源:origin: jclouds/legacy-jclouds-chef

@Override
public void close() throws IOException {
 delegate().close();
}

代码示例来源:origin: apache/jclouds

@Override
public void close() {
 delegate().close();
}

代码示例来源:origin: jclouds/legacy-jclouds-chef

@AfterClass(groups = { "integration", "live" })
@Override
protected void tearDownContext() {
 if (computeContext != null) {
   computeContext.getComputeService().destroyNodesMatching(NodePredicates.inGroup(group));
 }
 if (context != null) {
   view.getChefService().cleanupStaleNodesAndClients(group + "-", 1);
   ChefApi api = view.getApi(ChefApi.class);
   if (clientName != null && api.clientExists(clientName)) {
    api.deleteClient(clientName);
   }
   context.close();
 }
 super.tearDownContext();
}

相关文章