Examples of destroyNode()


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

         System.err.println(t.getMessage());
         return null;
      }

      for (String id : ids) {
         service.destroyNode(id);
         cacheProvider.getProviderCacheForType(Constants.ACTIVE_NODE_CACHE).remove(
                  service.getContext().unwrap().getId(), id);
         cacheProvider.getProviderCacheForType(Constants.INACTIVE_NODE_CACHE).remove(
                  service.getContext().unwrap().getId(), id);
         cacheProvider.getProviderCacheForType(Constants.SUSPENDED_NODE_CACHE).remove(
View Full Code Here

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

              .add(SUCESSFULL_OPERATION_RESPONSE)
              .add(GET_OPERATION_RESPONSE)
              .build();

      ComputeService client = orderedRequestsSendResponses(orderedRequests, orderedResponses);
      client.destroyNode("test-delete-networks");

   }

   public void testListLocationsWhenResponseIs2xx() throws Exception {
View Full Code Here

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

              .add(SUCESSFULL_OPERATION_RESPONSE)
              .add(GET_GLOBAL_OPERATION_RESPONSE)
              .build();

      ComputeService client = orderedRequestsSendResponses(orderedRequests, orderedResponses);
      client.destroyNode("us-central1-a/test-delete-networks");

   }

   public void testListLocationsWhenResponseIs2xx() throws Exception {
View Full Code Here

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

  public void destroyInstance(ClusterSpec clusterSpec, String instanceId) throws IOException {
    LOG.info("Destroying instance {}", instanceId);

    /* Destroy the instance */
    ComputeService computeService = getCompute().apply(clusterSpec).getComputeService();
    computeService.destroyNode(instanceId);

    /* .. and update the cluster state storage */
    ClusterStateStore store = getClusterStateStore(clusterSpec);
    Cluster cluster = store.load();
    cluster.removeInstancesMatching(withIds(instanceId));
View Full Code Here

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

      assertEquals("test-create-image", image.getName());

      imageId = image.getId();

      computeService.destroyNode(node.getId());

      Optional<? extends Image> optImage = getImage();

      assertTrue(optImage.isPresent());
View Full Code Here

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

  public void destroyInstance(ClusterSpec clusterSpec, String instanceId) throws IOException {
    LOG.info("Destroying instance {}", instanceId);

    /* Destroy the instance */
    ComputeService computeService = getCompute().apply(clusterSpec).getComputeService();
    computeService.destroyNode(instanceId);

    /* .. and update the cluster state storage */
    ClusterStateStore store = stateStoreFactory.create(clusterSpec);
    Cluster cluster = store.load();
    cluster.removeInstancesMatching(withIds(instanceId));
View Full Code Here

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

  public void destroyInstance(ClusterSpec clusterSpec, String instanceId) throws IOException {
    LOG.info("Destroying instance {}", instanceId);

    /* Destroy the instance */
    ComputeService computeService = getCompute().apply(clusterSpec).getComputeService();
    computeService.destroyNode(instanceId);

    /* .. and update the cluster state storage */
    ClusterStateStore store = getClusterStateStore(clusterSpec);
    Cluster cluster = store.load();
    cluster.removeInstancesMatching(withIds(instanceId));
View Full Code Here

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

              .add(SUCESSFULL_OPERATION_RESPONSE)
              .add(GET_GLOBAL_OPERATION_RESPONSE)
              .build();

      ComputeService client = orderedRequestsSendResponses(orderedRequests, orderedResponses);
      client.destroyNode("us-central1-a/test-delete-networks");

   }

   public void testListLocationsWhenResponseIs2xx() throws Exception {
View Full Code Here

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

              .add(SUCESSFULL_OPERATION_RESPONSE)
              .add(GET_GLOBAL_OPERATION_RESPONSE)
              .build();

      ComputeService client = orderedRequestsSendResponses(orderedRequests, orderedResponses);
      client.destroyNode("us-central1-a/test-delete-networks");

   }

   public void testListLocationsWhenResponseIs2xx() throws Exception {
View Full Code Here

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

      assertEquals(imageGroup, image.getName());

      imageId = image.getId();

      computeService.destroyNode(node.getId());

      Optional<? extends Image> optImage = getImage();

      assertTrue(optImage.isPresent());
   }
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.