public interface BlobStore
AsyncBlobStore, 
BlobStoreContextFactory| Modifier and Type | Method and Description | 
|---|---|
BlobBuilder | 
blobBuilder(String name)  | 
boolean | 
blobExists(String container,
          String name)
Determines if a blob exists 
 | 
BlobMetadata | 
blobMetadata(String container,
            String name)
Retrieves the metadata of a  
Blob at location container/name | 
void | 
clearContainer(String container)
This will delete the contents of a container at its root path without deleting the container 
 | 
void | 
clearContainer(String container,
              ListContainerOptions options)
Like  
clearContainer(String) except you can use options to do things like recursive
 deletes, or clear at a different path than root. | 
boolean | 
containerExists(String container)
determines if a service-level container exists 
 | 
long | 
countBlobs(String container)  | 
long | 
countBlobs(String container,
          ListContainerOptions options)  | 
boolean | 
createContainerInLocation(Location location,
                         String container)
Creates a namespace for your blobs
 
 
 A container is a namespace for your objects. 
 | 
boolean | 
createContainerInLocation(Location location,
                         String container,
                         CreateContainerOptions options)  | 
void | 
createDirectory(String container,
               String directory)
Creates a folder or a directory marker depending on the service 
 | 
void | 
deleteContainer(String container)
This will delete everything inside a container recursively. 
 | 
void | 
deleteDirectory(String containerName,
               String name)
Deletes a folder or a directory marker depending on the service 
 | 
boolean | 
directoryExists(String container,
               String directory)
Determines if a directory exists 
 | 
Blob | 
getBlob(String container,
       String name)
Retrieves a  
Blob representing the data at location container/name | 
Blob | 
getBlob(String container,
       String name,
       GetOptions options)
Retrieves a  
Blob representing the data at location container/name | 
BlobStoreContext | 
getContext()  | 
PageSet<? extends StorageMetadata> | 
list()
Lists all root-level resources available to the identity. 
 | 
PageSet<? extends StorageMetadata> | 
list(String container)
Lists all resources in a container non-recursive. 
 | 
PageSet<? extends StorageMetadata> | 
list(String container,
    ListContainerOptions options)
Like  
list(String) except you can control the size, recursion, and context of the list
 using options | 
Set<? extends Location> | 
listAssignableLocations()
The get locations command returns all the valid locations for containers. 
 | 
String | 
putBlob(String container,
       Blob blob)
Adds a  
Blob representing the data at location container/blob.metadata.name | 
String | 
putBlob(String container,
       Blob blob,
       PutOptions options)
Adds a  
Blob representing the data at location container/blob.metadata.name
 options using multipart strategies. | 
void | 
removeBlob(String container,
          String name)
Deletes a  
Blob representing the data at location container/name | 
BlobStoreContext getContext()
BlobBuilder blobBuilder(String name)
BlobsSet<? extends Location> listAssignableLocations()
PageSet<? extends StorageMetadata> list()
boolean containerExists(String container)
boolean createContainerInLocation(@Nullable Location location, String container)
location - some blobstores allow you to specify a location, such as US-EAST, for where this
           container will exist. null will choose a default locationcontainer - namespace. Typically constrained to lowercase alpha-numeric and hyphens.boolean createContainerInLocation(@Nullable Location location, String container, CreateContainerOptions options)
options - controls default access controlcreateContainerInLocation(Location,String)PageSet<? extends StorageMetadata> list(String container)
container - what to listPageSet<? extends StorageMetadata> list(String container, ListContainerOptions options)
list(String) except you can control the size, recursion, and context of the list
 using optionscontainer - what to listoptions - size, recursion, and context of the listvoid clearContainer(String container)
container - what to clearvoid clearContainer(String container, ListContainerOptions options)
clearContainer(String) except you can use options to do things like recursive
 deletes, or clear at a different path than root.container - what to clearoptions - recursion and path to clearvoid deleteContainer(String container)
container - what to deleteboolean directoryExists(String container, String directory)
container - container where the directory residesdirectory - full path to the directoryvoid createDirectory(String container, String directory)
container - container to create the directory indirectory - full path to the directoryvoid deleteDirectory(String containerName, String name)
container - container to delete the directory fromdirectory - full path to the directory to deleteboolean blobExists(String container, String name)
container - container where the blob residesdirectory - full path to the blobString putBlob(String container, Blob blob)
Blob representing the data at location container/blob.metadata.namecontainer - container to place the blob.blob - fully qualified name relative to the container.options - byte range or condition optionsContainerNotFoundException - if the container doesn't existString putBlob(String container, Blob blob, PutOptions options)
Blob representing the data at location container/blob.metadata.name
 options using multipart strategies.container - container to place the blob.blob - fully qualified name relative to the container.options - byte range optionsContainerNotFoundException - if the container doesn't existBlobMetadata blobMetadata(String container, String name)
Blob at location container/namecontainer - container where this exists.name - fully qualified name relative to the container.ContainerNotFoundException - if the container doesn't existBlob getBlob(String container, String name)
Blob representing the data at location container/namecontainer - container where this exists.name - fully qualified name relative to the container.ContainerNotFoundException - if the container doesn't existBlob getBlob(String container, String name, GetOptions options)
Blob representing the data at location container/namecontainer - container where this exists.name - fully qualified name relative to the container.options - byte range or condition optionsContainerNotFoundException - if the container doesn't existvoid removeBlob(String container, String name)
Blob representing the data at location container/namecontainer - container where this exists.name - fully qualified name relative to the container.ContainerNotFoundException - if the container doesn't existlong countBlobs(String container)
long countBlobs(String container, ListContainerOptions options)
Copyright © 2009-2013 jclouds. All Rights Reserved.