|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.blobstore.TransientStorageStrategy
public class TransientStorageStrategy
| Method Summary | |
|---|---|
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,
org.jclouds.domain.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 |
org.jclouds.domain.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean containerExists(String containerName)
LocalStorageStrategy
containerExists in interface LocalStorageStrategypublic Iterable<String> getAllContainerNames()
LocalStorageStrategy
getAllContainerNames in interface LocalStorageStrategy
public boolean createContainerInLocation(String containerName,
org.jclouds.domain.Location location)
LocalStorageStrategy
createContainerInLocation in interface LocalStorageStrategypublic void deleteContainer(String containerName)
LocalStorageStrategy
deleteContainer in interface LocalStorageStrategypublic void clearContainer(String containerName)
LocalStorageStrategy
clearContainer in interface LocalStorageStrategy
public 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 clear
public boolean blobExists(String containerName,
String blobName)
LocalStorageStrategy
blobExists in interface LocalStorageStrategypublic Iterable<String> getBlobKeysInsideContainer(String containerName)
LocalStorageStrategy
getBlobKeysInsideContainer in interface LocalStorageStrategy
public Blob getBlob(String containerName,
String blobName)
LocalStorageStrategy
getBlob in interface LocalStorageStrategy
public String putBlob(String containerName,
Blob blob)
throws IOException
LocalStorageStrategyBlob into a file
putBlob in interface LocalStorageStrategyIOException
public void removeBlob(String containerName,
String blobName)
LocalStorageStrategy
removeBlob in interface LocalStorageStrategypublic org.jclouds.domain.Location getLocation(String containerName)
getLocation in interface LocalStorageStrategycontainerName - name of container
public String getSeparator()
getSeparator in interface LocalStorageStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||