Examples of Volume


Examples of org.jclouds.ibm.smartcloud.domain.Volume

   @Test
   public void testGetVolume() throws Exception {
      Set<? extends Volume> response = connection.listVolumes();
      assertNotNull(response);
      if (response.size() > 0) {
         Volume image = Iterables.get(response, 0);
         assertEquals(connection.getVolume(image.getId()).getId(), image.getId());
      }
   }
View Full Code Here

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

   public void testListVolumes() {
      Set<? extends Volume> volumes = volumeApi.list().toSet();
      assertNotNull(volumes);
      boolean foundIt = false;
      for (Volume vol : volumes) {
         Volume details = volumeApi.get(vol.getId());
         assertNotNull(details);
         if (Objects.equal(details.getId(), testVolume.getId())) {
            foundIt = true;
         }
      }
      assertTrue(foundIt, "Failed to find the volume we created in list() response");
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Volume

        }
        ComputeServiceContext context = iaasInfo.getComputeService().getContext();
       
        RestContext<NovaApi, NovaAsyncApi> nova = context.unwrap();
        VolumeApi api = nova.getApi().getVolumeExtensionForZone(region).get();
        Volume volume = api.create(sizeGB, CreateVolumeOptions.Builder.availabilityZone(zone));
        if (volume == null) {
      log.fatal("Volume creation was unsuccessful. [region] : " + region+" [zone] : " + zone
          + " of Iaas : " + iaasInfo);
      return null;
    }
   
    log.info("Successfully created a new volume [id]: "+volume.getId()
        +" in [region] : "+region+" [zone] : "+zone+" of Iaas : "+iaasInfo);
    return volume.getId();
  }
View Full Code Here

Examples of org.jclouds.openstack.trove.v1.internal.Volume

      /**
       *
       * @return A new Instance object.
       */
      public Instance build() {
         return new Instance(id, name, flavor, new Volume(size), status, links, hostname);
      }
View Full Code Here

Examples of org.photovault.imginfo.Volume

            if ( !embeddedDirectory.exists() ) {
                embeddedDirectory.mkdirs();
            }
            File derbyDir = new File( embeddedDirectory, "derby" );
            File photoDir = new File( embeddedDirectory, "photos");
            Volume vol = new Volume( "photos", photoDir.getAbsolutePath() );
            try {
                addVolume( vol );
            } catch (PhotovaultException ex) {
                // This should not happen since this is the first volume, there cannot be
                // name conflict!!!
View Full Code Here

Examples of org.sleuthkit.datamodel.Volume

        }
        return ret;
    }

    private static boolean isLeafVolume(VolumeNode node) {
        Volume vol = node.getLookup().lookup(Volume.class);
        boolean ret = true;

        try {
            for (Content c : vol.getChildren()) {
                if (!(c instanceof LayoutFile
                        || c instanceof VirtualDirectory
                        )
                       
                        ) {
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.