public interface BlobStore
BlobVersion.BlobStoreFactory| Modifier and Type | Method and Description |
|---|---|
boolean |
erase()
Remove all blobs from all transactions and all the history.
|
String[] |
getRecentModifications()
Most recent blobs that have committed modifications.
|
BlobVersion |
newVersion()
Create a new
BlobVersion using a generated version ID. |
BlobVersion |
newVersion(String version)
Create a new
BlobVersion maybe with the given unique ID. |
BlobObject |
open(String uri)
Opens a
BlobObject for reading or writing. |
BlobVersion |
openVersion(String version)
Open a read-only
BlobVersion of the blob(s) with this version. |
BlobObject open(String uri) throws IOException
BlobObject for reading or writing. Any changes to this
blob are visible to other blobs of the same uri when a call
to the FileObject.delete() returns or a call to the
BlobObject.openWriter()'s Writer.close() returns or a
call to the FileObject.openOutputStream()'s
OutputStream.close() returns.IOExceptionBlobVersion newVersion() throws IOException
BlobVersion using a generated version ID.IOExceptionBlobVersion newVersion(String version) throws IOException
BlobVersion maybe with the given unique ID.
BlobVersion returned from this method using a previously assigned
version have undefined consequences.version - to uniquely identify new blob versions, this may or may not
actually be usedIOExceptionBlobVersion openVersion(String version) throws IOException
BlobVersion of the blob(s) with this version.
Only blobs with the given version are accessible using the returned
BlobVersion.version - version of blob to readBlobVersionIllegalArgumentException - if the version is not a valid version of at least one blob.IOExceptionString[] getRecentModifications() throws IOException
IOExceptionboolean erase()
throws IOException
true if the store was successfully deleted.IOExceptionCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.