Package org.jclouds.openstack.cinder.v1.domain

Examples of org.jclouds.openstack.cinder.v1.domain.AvailabilityZone


   }

   private void createSnapshot(Volume volume) throws TimeoutException {
      System.out.format("Create Snapshot%n");

      CreateSnapshotOptions options = CreateSnapshotOptions.Builder
            .name(NAME)
            .description("Snapshot of " + volume.getId());

      Snapshot snapshot = snapshotApi.create(volume.getId(), options);
View Full Code Here


      super.tearDown();
   }

   public void testCreateVolume() {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(name)
            .description("description of test volume")
            .availabilityZone(zone);
      testVolume = volumeApi.create(100, options);
     
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
                  .build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      Volume volume = api.create(1, options);
      assertEquals(volume, testVolumeCreate());
   }
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
               .build(),
            HttpResponse.builder().statusCode(404).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      api.create(1, options);
   }
View Full Code Here

      return nodeMetadata;
   }

   private Volume createVolume() throws TimeoutException {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(Constants.NAME)
            .metadata(ImmutableMap.<String, String> of("key1", "value1"));

      System.out.println("Create Volume");
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(name)
            .description("description of test volume")
            .availabilityZone(zone);
      testVolume = volumeApi.create(100, options);
     
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
                  .build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      Volume volume = api.create(1, options);
      assertEquals(volume, testVolumeCreate());
   }
View Full Code Here

                  .payload(payloadFromResourceWithContentType("/volume_create.json", MediaType.APPLICATION_JSON))
               .build(),
            HttpResponse.builder().statusCode(404).payload(payloadFromResource("/volume_create_response.json")).build()
      ).getVolumeApiForZone("RegionOne");

      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name("jclouds-test-volume")
            .description("description of test volume");
      api.create(1, options);
   }
View Full Code Here

      return nodeMetadata;
   }

   private Volume createVolume() throws TimeoutException {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(NAME)
            .volumeType("SSD")
            .metadata(ImmutableMap.of("key1", "value1"));

      System.out.format("Create Volume%n");
View Full Code Here

      super.tearDown();
   }

   public void testCreateVolume() {
      CreateVolumeOptions options = CreateVolumeOptions.Builder
            .name(name)
            .description("description of test volume");
      testVolume = volumeApi.create(100, options);
     
      assertTrue(VolumePredicates.awaitAvailable(volumeApi).apply(testVolume));
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.cinder.v1.domain.AvailabilityZone

Copyright © 2018 www.massapicom. 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.