|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilesystemStorageStrategy
Strategy for filesystem operations related to container and blob
Method Summary | |
---|---|
boolean |
blobExists(String container,
String key)
|
void |
clearContainer(String container)
Empty the container of its content (files and subdirectories), but doesn't delete the container itself |
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)
Checks if a container exists |
long |
countBlobs(String container,
ListContainerOptions options)
Counts number of blobs inside a container |
boolean |
createContainer(String container)
Creates a new container |
void |
createDirectory(String container,
String directory)
Creates a folder or a directory marker depending on the service |
void |
deleteContainer(String container)
Deletes a container and all its content |
void |
deleteDirectory(String container,
String directory)
Deletes a folder or a directory marker depending on the service |
boolean |
directoryExists(String container,
String directory)
Determines if a directory exists |
Iterable<String> |
getAllContainerNames()
Return an iterator that reports all the containers under base path |
Iterable<String> |
getBlobKeysInsideContainer(String container)
Returns all the blobs key inside a container |
File |
getFileForBlobKey(String container,
String key)
Returns a File object that links to the blob |
Blob |
newBlob(String name)
Creates a new blob |
void |
removeBlob(String container,
String key)
|
void |
writePayloadOnFile(String container,
String blobKey,
Payload payload)
Write a Blob Payload into a file |
Method Detail |
---|
boolean createContainer(String container)
container
-
void deleteContainer(String container)
container
- boolean containerExists(String container)
container
-
void clearContainer(String container)
container
- 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 clearIterable<String> getAllContainerNames()
boolean directoryExists(String container, String directory)
container
- container where the directory residesdirectory
- full path to the directoryvoid createDirectory(String container, String directory)
container
- container to create the directory indirectory
- full path to the directoryvoid deleteDirectory(String container, String directory)
container
- container to delete the directory fromdirectory
- full path to the directory to deleteBlob newBlob(String name)
name
-
boolean blobExists(String container, String key)
container
- key
-
Iterable<String> getBlobKeysInsideContainer(String container) throws IOException
container
-
IOException
long countBlobs(String container, ListContainerOptions options)
container
- options
-
File getFileForBlobKey(String container, String key)
File
object that links to the blob
container
- key
-
void removeBlob(String container, String key)
container
- key
- void writePayloadOnFile(String container, String blobKey, Payload payload) throws IOException
Blob
Payload
into a file
fileName
- payload
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |