|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlobStore
Synchronous access to a BlobStore such as Amazon S3
AsyncBlobStore,
BlobStoreContextFactory| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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 list
PageSet<? extends StorageMetadata> list(String container,
ListContainerOptions options)
list(String) except you can control the size, recursion, and context of the list
using options
container - what to listoptions - size, recursion, and context of the list
void clearContainer(String container)
container - what to clear
void 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 delete
boolean directoryExists(String container,
String directory)
container - container where the directory residesdirectory - full path to the directory
void createDirectory(String container,
String directory)
container - container to create the directory indirectory - full path to the directory
void deleteDirectory(String containerName,
String name)
container - container to delete the directory fromdirectory - full path to the directory to delete
boolean blobExists(String container,
String name)
container - container where the blob residesdirectory - full path to the blob
String putBlob(String container,
Blob blob)
Blob representing the data at location container/blob.metadata.name
container - container to place the blob.blob - fully qualified name relative to the container.options - byte range or condition options
ContainerNotFoundException - if the container doesn't exist
String 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 options
ContainerNotFoundException - if the container doesn't exist
BlobMetadata blobMetadata(String container,
String name)
Blob at location container/name
container - container where this exists.name - fully qualified name relative to the container.
ContainerNotFoundException - if the container doesn't exist
Blob getBlob(String container,
String name)
Blob representing the data at location container/name
container - container where this exists.name - fully qualified name relative to the container.
ContainerNotFoundException - if the container doesn't exist
Blob getBlob(String container,
String name,
GetOptions options)
Blob representing the data at location container/name
container - container where this exists.name - fully qualified name relative to the container.options - byte range or condition options
ContainerNotFoundException - if the container doesn't exist
void removeBlob(String container,
String name)
Blob representing the data at location container/name
container - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||