Package org.jclouds.blobstore

Examples of org.jclouds.blobstore.BlobStore.countBlobs()


   public void testChunksAreDeletedWhenMultipartBlobIsDeleted() throws IOException, InterruptedException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();

         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);
View Full Code Here


         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);

         assertEquals(countAfter, countBefore);
      } finally {
          returnContainer(containerName);
      }
View Full Code Here

   @Test(groups = { "integration", "live" })
   public void testMultipartChunkedFileStream() throws IOException, InterruptedException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();
         long countBefore = blobStore.countBlobs(containerName);

         addMultipartBlobToContainer(containerName, "const.txt");

         long countAfter = blobStore.countBlobs(containerName);
         assertNotEquals(countBefore, countAfter,
View Full Code Here

         BlobStore blobStore = view.getBlobStore();
         long countBefore = blobStore.countBlobs(containerName);

         addMultipartBlobToContainer(containerName, "const.txt");

         long countAfter = blobStore.countBlobs(containerName);
         assertNotEquals(countBefore, countAfter,
                         "No blob was created");
         assertTrue(countAfter - countBefore > 1,
                    "A multipart blob wasn't actually created - " +
                    "there was only 1 extra blob but there should be one manifest blob and multiple chunk blobs");
View Full Code Here

   @Test(groups = { "integration", "live" })
   public void testMultipartChunkedFileStream() throws IOException, InterruptedException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();
         long countBefore = blobStore.countBlobs(containerName);

         addMultipartBlobToContainer(containerName, "const.txt");

         long countAfter = blobStore.countBlobs(containerName);
         assertNotEquals(countBefore, countAfter,
View Full Code Here

         BlobStore blobStore = view.getBlobStore();
         long countBefore = blobStore.countBlobs(containerName);

         addMultipartBlobToContainer(containerName, "const.txt");

         long countAfter = blobStore.countBlobs(containerName);
         assertNotEquals(countBefore, countAfter,
                         "No blob was created");
         assertTrue(countAfter - countBefore > 1,
                    "A multipart blob wasn't actually created - " +
                    "there was only 1 extra blob but there should be one manifest blob and multiple chunk blobs");
View Full Code Here

   public void testChunksAreDeletedWhenMultipartBlobIsDeleted() throws IOException, InterruptedException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();

         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);
View Full Code Here

         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);

         assertEquals(countAfter, countBefore);
      } finally {
          returnContainer(containerName);
      }
View Full Code Here

   public void testChunksAreDeletedWhenMultipartBlobIsDeleted() throws IOException, InterruptedException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();

         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);
View Full Code Here

         long countBefore = blobStore.countBlobs(containerName);
         String blobName = "deleteme.txt";
         addMultipartBlobToContainer(containerName, blobName);

         blobStore.removeBlob(containerName, blobName);
         long countAfter = blobStore.countBlobs(containerName);

         assertEquals(countAfter, countBefore);
      } finally {
          returnContainer(containerName);
      }
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.