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)
LocalStorageStrategy
containerExists
in interface LocalStorageStrategy
public Iterable<String> getAllContainerNames()
LocalStorageStrategy
getAllContainerNames
in interface LocalStorageStrategy
public boolean createContainerInLocation(String containerName, Location location)
LocalStorageStrategy
createContainerInLocation
in interface LocalStorageStrategy
public void deleteContainer(String containerName)
LocalStorageStrategy
deleteContainer
in interface LocalStorageStrategy
public void clearContainer(String containerName)
LocalStorageStrategy
clearContainer
in interface LocalStorageStrategy
public void clearContainer(String containerName, ListContainerOptions options)
LocalStorageStrategy
LocalStorageStrategy.clearContainer(String)
except you can use options to do things like recursive
deletes, or clear at a different path than root.clearContainer
in interface LocalStorageStrategy
containerName
- what to clearoptions
- recursion and path to clearpublic boolean blobExists(String containerName, String blobName)
LocalStorageStrategy
blobExists
in interface LocalStorageStrategy
public 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
LocalStorageStrategy
Blob
into a fileputBlob
in interface LocalStorageStrategy
IOException
public void removeBlob(String containerName, String blobName)
LocalStorageStrategy
removeBlob
in interface LocalStorageStrategy
public Location getLocation(String containerName)
getLocation
in interface LocalStorageStrategy
containerName
- name of containerpublic String getSeparator()
getSeparator
in interface LocalStorageStrategy
Copyright © 2009-2013 jclouds. All Rights Reserved.