|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.camel.component.jclouds.JcloudsBlobStoreHelper
public final class JcloudsBlobStoreHelper
| Method Summary | |
|---|---|
static void |
ensureContainerExists(org.jclouds.blobstore.BlobStore blobStore,
String container,
String locationId)
Checks if container exists and creates one if not. |
static org.jclouds.domain.Location |
getLocationById(org.jclouds.blobstore.BlobStore blobStore,
String locationId)
Returns the Location that matches the locationId. |
static void |
mkDirs(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName)
Creates all directories that are part of the blobName. |
static InputStream |
readBlob(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName)
Reads from a BlobStore. |
static void |
writeBlob(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName,
org.jclouds.io.Payload payload)
Writes Payload to the the BlobStore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void mkDirs(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName)
blobStore - container - blobName -
public static void ensureContainerExists(org.jclouds.blobstore.BlobStore blobStore,
String container,
String locationId)
blobStore - The BlobStore to use.container - The container name to check against.locationId - The locationId to create the container if not found.
public static org.jclouds.domain.Location getLocationById(org.jclouds.blobstore.BlobStore blobStore,
String locationId)
Location that matches the locationId.
blobStore - locationId -
public static void writeBlob(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName,
org.jclouds.io.Payload payload)
Payload to the the BlobStore.
blobStore - container - blobName - payload -
public static InputStream readBlob(org.jclouds.blobstore.BlobStore blobStore,
String container,
String blobName)
BlobStore. It returns an Object.
container - blobName -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||