Modifier and Type | Method and Description |
---|---|
void |
abortMultipartUpload(MultipartUpload mpu) |
BlobBuilder |
blobBuilder(String name) |
boolean |
blobExists(String containerName,
String key)
Determines if a blob exists
|
BlobMetadata |
blobMetadata(String containerName,
String key)
Retrieves the metadata of a
Blob at location container/name |
void |
clearContainer(String containerName)
This implementation invokes
clearContainer(java.lang.String) with the
ListContainerOptions.recursive option. |
void |
clearContainer(String containerName,
ListContainerOptions options)
Like
BlobStore.clearContainer(String) except you can use options to do things like recursive
deletes, or clear at a different path than root. |
String |
completeMultipartUpload(MultipartUpload mpu,
List<MultipartPart> parts) |
boolean |
containerExists(String containerName)
determines if a service-level container exists
|
String |
copyBlob(String fromContainer,
String fromName,
String toContainer,
String toName,
CopyOptions options)
Copy blob from one container to another.
|
long |
countBlobs(String containerName)
This implementation invokes
countBlobs(java.lang.String) with the
ListContainerOptions.recursive option. |
long |
countBlobs(String containerName,
ListContainerOptions options)
This implementation invokes
BlobUtils.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions) |
boolean |
createContainerInLocation(Location location,
String name)
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 containerName,
String directory)
Creates a folder or a directory marker depending on the service
|
void |
deleteContainer(String containerName)
This implementation invokes
deleteAndVerifyContainerGone(java.lang.String) |
boolean |
deleteContainerIfEmpty(String containerName)
Deletes a container if it is empty.
|
void |
deleteDirectory(String containerName,
String directory)
Deletes a folder or a directory marker depending on the service
|
boolean |
directoryExists(String containerName,
String directory)
Determines if a directory exists
|
void |
downloadBlob(String container,
String name,
File destination) |
void |
downloadBlob(String container,
String name,
File destination,
ExecutorService executor) |
Blob |
getBlob(String containerName,
String key)
This implementation invokes
getBlob(String,String, GetOptions) |
Blob |
getBlob(String containerName,
String key,
GetOptions options)
Retrieves a
Blob representing the data at location container/name |
BlobAccess |
getBlobAccess(String container,
String name) |
ContainerAccess |
getContainerAccess(String container) |
BlobStoreContext |
getContext() |
long |
getMaximumMultipartPartSize() |
int |
getMaximumNumberOfParts() |
long |
getMinimumMultipartPartSize() |
MultipartUpload |
initiateMultipartUpload(String container,
BlobMetadata blobMetadata,
PutOptions options) |
PageSet<? extends StorageMetadata> |
list()
Lists all root-level resources available to the identity.
|
PageSet<? extends StorageMetadata> |
list(String containerName)
This implementation invokes
list(String, ListContainerOptions) |
PageSet<? extends StorageMetadata> |
list(String containerName,
ListContainerOptions options)
default maxResults is 1000
|
Set<? extends Location> |
listAssignableLocations()
The get locations command returns all the valid locations for containers.
|
List<MultipartPart> |
listMultipartUpload(MultipartUpload mpu) |
List<MultipartUpload> |
listMultipartUploads(String container) |
String |
putBlob(String containerName,
Blob blob)
Adds a
Blob representing the data at location container/blob.metadata.name |
String |
putBlob(String containerName,
Blob blob,
PutOptions options)
Adds a
Blob representing the data at location container/blob.metadata.name
options using multipart strategies. |
void |
removeBlob(String containerName,
String key)
Deletes a
Blob representing the data at location container/name |
void |
removeBlobs(String container,
Iterable<String> names)
Deletes multiple
Blob s representing the data at location container/name |
void |
setBlobAccess(String container,
String name,
BlobAccess access) |
void |
setContainerAccess(String container,
ContainerAccess access) |
InputStream |
streamBlob(String container,
String name) |
InputStream |
streamBlob(String container,
String name,
ExecutorService executor) |
MultipartPart |
uploadMultipartPart(MultipartUpload mpu,
int partNumber,
Payload payload) |
public BlobStoreContext getContext()
getContext
in interface BlobStore
public BlobBuilder blobBuilder(String name)
blobBuilder
in interface BlobStore
Blob
spublic PageSet<? extends StorageMetadata> list(String containerName)
list(String, ListContainerOptions)
public long countBlobs(String containerName)
countBlobs(java.lang.String)
with the
ListContainerOptions.recursive
option.countBlobs
in interface BlobStore
public long countBlobs(String containerName, ListContainerOptions options)
BlobUtils.countBlobs(java.lang.String, org.jclouds.blobstore.options.ListContainerOptions)
countBlobs
in interface BlobStore
public void clearContainer(String containerName)
clearContainer(java.lang.String)
with the
ListContainerOptions.recursive
option.clearContainer
in interface BlobStore
containerName
- what to clearpublic void clearContainer(String containerName, ListContainerOptions options)
BlobStore
BlobStore.clearContainer(String)
except you can use options to do things like recursive
deletes, or clear at a different path than root.clearContainer
in interface BlobStore
containerName
- what to clearoptions
- recursion and path to clearpublic void deleteDirectory(String containerName, String directory)
BlobStore
deleteDirectory
in interface BlobStore
public boolean directoryExists(String containerName, String directory)
BlobStore
directoryExists
in interface BlobStore
containerName
- container where the directory residesdirectory
- full path to the directorypublic void createDirectory(String containerName, String directory)
BlobStore
createDirectory
in interface BlobStore
containerName
- container to create the directory indirectory
- full path to the directorypublic Blob getBlob(String containerName, String key)
getBlob(String,String, GetOptions)
public void deleteContainer(String containerName)
deleteAndVerifyContainerGone(java.lang.String)
deleteContainer
in interface BlobStore
containerName
- what to deletepublic Set<? extends Location> listAssignableLocations()
BlobStore
listAssignableLocations
in interface BlobStore
public PageSet<? extends StorageMetadata> list(String containerName, ListContainerOptions options)
public void removeBlob(String containerName, String key)
BlobStore
Blob
representing the data at location container/name
removeBlob
in interface BlobStore
containerName
- container where this exists.key
- fully qualified name relative to the container.public void removeBlobs(String container, Iterable<String> names)
BlobStore
Blob
s representing the data at location container/name
removeBlobs
in interface BlobStore
container
- container where this exists.names
- fully qualified names relative to the container.public BlobAccess getBlobAccess(String container, String name)
getBlobAccess
in interface BlobStore
public void setBlobAccess(String container, String name, BlobAccess access)
setBlobAccess
in interface BlobStore
public boolean deleteContainerIfEmpty(String containerName)
BlobStore
deleteContainerIfEmpty
in interface BlobStore
containerName
- name of the container to deletepublic boolean containerExists(String containerName)
BlobStore
containerExists
in interface BlobStore
public PageSet<? extends StorageMetadata> list()
BlobStore
public boolean createContainerInLocation(Location location, String name)
BlobStore
createContainerInLocation
in interface BlobStore
location
- some blobstores allow you to specify a location, such as US-EAST, for where this
container will exist. null will choose a default locationname
- namespace. Typically constrained to lowercase alpha-numeric and hyphens.public ContainerAccess getContainerAccess(String container)
getContainerAccess
in interface BlobStore
public void setContainerAccess(String container, ContainerAccess access)
setContainerAccess
in interface BlobStore
public String putBlob(String containerName, Blob blob)
BlobStore
Blob
representing the data at location container/blob.metadata.name
public String copyBlob(String fromContainer, String fromName, String toContainer, String toName, CopyOptions options)
BlobStore
public boolean blobExists(String containerName, String key)
BlobStore
blobExists
in interface BlobStore
containerName
- container where the blob residespublic Blob getBlob(String containerName, String key, GetOptions options)
BlobStore
Blob
representing the data at location container/name
public BlobMetadata blobMetadata(String containerName, String key)
BlobStore
Blob
at location container/name
blobMetadata
in interface BlobStore
containerName
- container where this exists.key
- fully qualified name relative to the container.public String putBlob(String containerName, Blob blob, PutOptions options)
BlobStore
Blob
representing the data at location container/blob.metadata.name
options using multipart strategies.public boolean createContainerInLocation(Location location, String container, CreateContainerOptions options)
createContainerInLocation
in interface BlobStore
options
- controls default access controlBlobStore.createContainerInLocation(Location,String)
public MultipartUpload initiateMultipartUpload(String container, BlobMetadata blobMetadata, PutOptions options)
initiateMultipartUpload
in interface BlobStore
public void abortMultipartUpload(MultipartUpload mpu)
abortMultipartUpload
in interface BlobStore
public String completeMultipartUpload(MultipartUpload mpu, List<MultipartPart> parts)
completeMultipartUpload
in interface BlobStore
public MultipartPart uploadMultipartPart(MultipartUpload mpu, int partNumber, Payload payload)
uploadMultipartPart
in interface BlobStore
public List<MultipartPart> listMultipartUpload(MultipartUpload mpu)
listMultipartUpload
in interface BlobStore
public List<MultipartUpload> listMultipartUploads(String container)
listMultipartUploads
in interface BlobStore
public long getMinimumMultipartPartSize()
getMinimumMultipartPartSize
in interface BlobStore
public long getMaximumMultipartPartSize()
getMaximumMultipartPartSize
in interface BlobStore
public int getMaximumNumberOfParts()
getMaximumNumberOfParts
in interface BlobStore
public void downloadBlob(String container, String name, File destination)
downloadBlob
in interface BlobStore
public void downloadBlob(String container, String name, File destination, ExecutorService executor)
downloadBlob
in interface BlobStore
public InputStream streamBlob(String container, String name)
streamBlob
in interface BlobStore
public InputStream streamBlob(String container, String name, ExecutorService executor)
streamBlob
in interface BlobStore
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.