public class TransientStorageStrategy extends Object implements LocalStorageStrategy
| Modifier and Type | Method and Description |
|---|---|
boolean |
blobExists(String containerName,
String blobName)
Return true if a blob named by key exists
|
void |
clearContainer(String containerName)
Empty the container of its content (files and subdirectories), but doesn't
delete the container itself
|
void |
clearContainer(String containerName,
ListContainerOptions options)
Like
LocalStorageStrategy.clearContainer(String) except you can use options to do things like recursive
deletes, or clear at a different path than root. |
boolean |
containerExists(String containerName)
Checks if a container exists
|
boolean |
createContainerInLocation(String containerName,
Location location)
Creates a new container
|
void |
deleteContainer(String containerName)
Deletes a container and all its content
|
Iterable<String> |
getAllContainerNames()
Return an iterator that reports all the containers under base path
|
Blob |
getBlob(String containerName,
String blobName)
Load the blob with the given key belonging to the container with the given
name.
|
Iterable<String> |
getBlobKeysInsideContainer(String containerName)
Returns all the blobs key inside a container
|
Location |
getLocation(String containerName) |
String |
getSeparator() |
String |
putBlob(String containerName,
Blob blob)
Write a
Blob into a file |
void |
removeBlob(String containerName,
String blobName)
Remove blob named by the given key
|
public boolean containerExists(String containerName)
LocalStorageStrategycontainerExists in interface LocalStorageStrategypublic Iterable<String> getAllContainerNames()
LocalStorageStrategygetAllContainerNames in interface LocalStorageStrategypublic boolean createContainerInLocation(String containerName, Location location)
LocalStorageStrategycreateContainerInLocation in interface LocalStorageStrategypublic void deleteContainer(String containerName)
LocalStorageStrategydeleteContainer in interface LocalStorageStrategypublic void clearContainer(String containerName)
LocalStorageStrategyclearContainer in interface LocalStorageStrategypublic void clearContainer(String containerName, ListContainerOptions options)
LocalStorageStrategyLocalStorageStrategy.clearContainer(String) except you can use options to do things like recursive
deletes, or clear at a different path than root.clearContainer in interface LocalStorageStrategycontainerName - what to clearoptions - recursion and path to clearpublic boolean blobExists(String containerName, String blobName)
LocalStorageStrategyblobExists in interface LocalStorageStrategypublic Iterable<String> getBlobKeysInsideContainer(String containerName)
LocalStorageStrategygetBlobKeysInsideContainer in interface LocalStorageStrategypublic Blob getBlob(String containerName, String blobName)
LocalStorageStrategygetBlob in interface LocalStorageStrategypublic String putBlob(String containerName, Blob blob) throws IOException
LocalStorageStrategyBlob into a fileputBlob in interface LocalStorageStrategyIOExceptionpublic void removeBlob(String containerName, String blobName)
LocalStorageStrategyremoveBlob in interface LocalStorageStrategypublic Location getLocation(String containerName)
getLocation in interface LocalStorageStrategycontainerName - name of containerpublic String getSeparator()
getSeparator in interface LocalStorageStrategyCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.