Examples of destroyNodesMatching()


Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

            }
            break;
         case DESTROY:
            System.out.printf(">> destroying nodes in group %s%n", groupName);
            // you can use predicates to select which nodes you wish to destroy.
            Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(//
                  Predicates.<NodeMetadata> and(not(TERMINATED), inGroup(groupName)));
            System.out.printf("<< destroyed nodes %s%n", destroyed);
            break;
         }
      } catch (RunNodesException e) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

               break;
            case DESTROY:
               System.out.printf(">> destroying nodes in group %s%n", groupName);
               // you can use predicates to select which nodes you wish to
               // destroy.
               Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(//
                     Predicates.<NodeMetadata> and(not(TERMINATED), inGroup(groupName)));
               System.out.printf("<< destroyed nodes %s%n", destroyed);
               break;
         }
      } catch (RunNodesException e) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

            } else {
               System.out.printf("<< socket not ready [%s] node(%s)%n", socket, node.getId());
            }
         } else if (command.equals("destroy")) {
            System.out.printf(">> destroying nodes in group(%s)%n", group);
            Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(NodePredicates.inGroup(group));
            System.out.printf("<< destroyed(%d)%n", destroyed.size());
            System.exit(0);
         } else {
            System.err.println(INVALID_SYNTAX);
            System.exit(1);
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

  public Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
      throws IOException, InterruptedException {
    LOG.info("Destroying " + clusterSpec.getClusterName() + " cluster");
    ComputeService computeService =
    ComputeServiceContextBuilder.build(getComputeServiceContextFactory(), clusterSpec).getComputeService();
    computeService.destroyNodesMatching(inGroup(clusterSpec.getClusterName()));
    LOG.info("Cluster {} destroyed", clusterSpec.getClusterName());
    return null;
  }

}
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

                    break;
                case DESTROY:
                    System.out.printf(">> destroying nodes in group %s%n", groupName);
                    // you can use predicates to select which nodes you wish to
                    // destroy.
                    Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(//
                            Predicates.<NodeMetadata>and(not(TERMINATED), inGroup(groupName)));
                    System.out.printf("<< destroyed nodes %s%n", destroyed);
                    break;
            }
        } catch (RunNodesException e) {
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

            }
            break;
         case DESTROY:
            System.out.printf(">> destroying nodes in group %s%n", groupName);
            // you can use predicates to select which nodes you wish to destroy.
            Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(//
                  Predicates.<NodeMetadata> and(not(TERMINATED), inGroup(groupName)));
            System.out.printf("<< destroyed nodes %s%n", destroyed);
            break;
         case LISTIMAGES:
            Set<? extends Image> images = compute.listImages();
View Full Code Here

Examples of org.jclouds.compute.ComputeService.destroyNodesMatching()

            } else {
               System.out.printf("<< socket not ready [%s] node(%s)%n", socket, node.getId());
            }
         } else if (command.equals("destroy")) {
            System.out.printf(">> destroying nodes in group(%s)%n", group);
            Set<? extends NodeMetadata> destroyed = compute.destroyNodesMatching(NodePredicates.inGroup(group));
            System.out.printf("<< destroyed(%d)%n", destroyed.size());
            System.exit(0);
         } else {
            System.err.println(INVALID_SYNTAX);
            System.exit(1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.