Package org.jclouds.blobstore

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


   @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 testMultipartChunkedFilenames() throws InterruptedException, IOException {
      String containerName = getContainerName();
      try {
         BlobStore blobStore = view.getBlobStore();
         String objectName = "object.txt";
         long countBefore = blobStore.countBlobs(containerName);

         // we want 2 parts
         ByteSource inputSource = createByteSource(PART_SIZE + 1);
         addMultipartBlobToContainer(containerName, objectName, inputSource);
View Full Code Here

         // we want 2 parts
         ByteSource inputSource = createByteSource(PART_SIZE + 1);
         addMultipartBlobToContainer(containerName, objectName, inputSource);

         // did we create enough parts?
         long countAfter = blobStore.countBlobs(containerName);
         assertNotEquals(countAfter, countBefore, "No blob was created");
         assertEquals(countAfter, countBefore + 3,
                 "3 parts (2 objects + 1 manifest) were expected.");

         // download and check if correct
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.