Skip to content

Instantly share code, notes, and snippets.

@etoews
Last active October 11, 2015 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etoews/3862504 to your computer and use it in GitHub Desktop.
Save etoews/3862504 to your computer and use it in GitHub Desktop.
jclouds workshop
private void deleteNodes() {
for (ComputeService computeService: nodes.keySet()) {
try {
NodeMetadata node = nodes.get(computeService);
computeService.destroyNode(node.getId());
}
catch (Throwable e) {
e.printStackTrace();
}
}
}
private void close() {
for (ComputeService computeService: computeServices) {
computeService.getContext().close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment