Examples of blobBuilder()


Examples of org.jclouds.blobstore.AsyncBlobStore.blobBuilder()

      String containerName = getContainerName();
     
      try {
         AsyncBlobStore asyncBlobStore = view.getAsyncBlobStore();
         asyncBlobStore.createContainerInLocation(null, containerName).get();
         Blob blob = asyncBlobStore.blobBuilder("small").payload("small").build();
         asyncBlobStore.putBlob(containerName, blob, PutOptions.Builder.multipart()).get();

      } finally {
         returnContainer(containerName);
      }
View Full Code Here

Examples of org.jclouds.blobstore.AsyncBlobStore.blobBuilder()

      String containerName = getContainerName();
     
      try {
         AsyncBlobStore asyncBlobStore = view.getAsyncBlobStore();
         asyncBlobStore.createContainerInLocation(null, containerName).get();
         Blob blob = asyncBlobStore.blobBuilder("small").payload("small").build();
         asyncBlobStore.putBlob(containerName, blob, PutOptions.Builder.multipart()).get();

      } finally {
         returnContainer(containerName);
      }
View Full Code Here

Examples of org.jclouds.blobstore.AsyncBlobStore.blobBuilder()

      String containerName = getContainerName();
     
      try {
         AsyncBlobStore asyncBlobStore = view.getAsyncBlobStore();
         asyncBlobStore.createContainerInLocation(null, containerName).get();
         Blob blob = asyncBlobStore.blobBuilder("small").payload("small").build();
         asyncBlobStore.putBlob(containerName, blob, PutOptions.Builder.multipart()).get();

      } finally {
         returnContainer(containerName);
      }
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

            keySet.add(i + "");
         }

         Map<String, Blob> newMap = Maps.newLinkedHashMap();
         for (String key : keySet.build()) {
            newMap.put(key, map.blobBuilder().name(key).payload(key).build());
         }
         map.putAll(newMap);
         newMap.clear();

         assertConsistencyAwareMapSize(map, maxResultsForTestListings() + 1);
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

   @Override
   protected void addTenObjectsUnderPrefix(String containerName, String prefix) throws InterruptedException {
      BlobMap blobMap = createMap(view, containerName, inDirectory(prefix));
      for (int i = 0; i < 10; i++) {
         blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
      }
   }

   @Override
   protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

   @Override
   protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
      BlobMap blobMap = createMap(view, containerName, ListContainerOptions.NONE);
      for (int i = 0; i < 10; i++) {
         blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
      }
   }
}
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

            keySet.add(i + "");
         }

         Map<String, Blob> newMap = Maps.newLinkedHashMap();
         for (String key : keySet.build()) {
            newMap.put(key, map.blobBuilder().name(key).payload(key).build());
         }
         map.putAll(newMap);
         newMap.clear();

         assertConsistencyAwareMapSize(map, maxResultsForTestListings() + 1);
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

   @Override
   protected void addTenObjectsUnderPrefix(String containerName, String prefix) throws InterruptedException {
      BlobMap blobMap = createMap(view, containerName, inDirectory(prefix));
      for (int i = 0; i < 10; i++) {
         blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
      }
   }

   @Override
   protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.blobBuilder()

   @Override
   protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
      BlobMap blobMap = createMap(view, containerName, ListContainerOptions.NONE);
      for (int i = 0; i < 10; i++) {
         blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
      }
   }
}
View Full Code Here

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

    BlobStoreContext context = getBlobStoreContext(profileName);

    logger.debug("Storing blob {} on {}", blobName, profileName);

    BlobStore blobStore = context.getBlobStore();
    BlobBuilder blobBuilder = blobStore.blobBuilder(blobName).payload(in).contentLength(size);

    // store blob
    blobStore.putBlob(container, blobBuilder.build());
  }
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.