public interface BlobVersion
BlobObject modifications that were or will be saved together
to this BlobStore.| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Makes the changes to the open blobs in this
BlobVersion available
to others. |
boolean |
erase()
Reverts all committed changes to blobs from this
BlobVersion. |
String[] |
getModifications()
Blobs that have been modified in this version.
|
BlobObject |
open(String uri)
Opens a
BlobObject for reading or writing if this
BlobVersion has not be committed. |
void |
prepare()
Prevents any further changes to the store from other threads until
commit() or rollback() is called from this thread. |
void |
rollback()
Aborts all uncommitted changes to blobs, restoring the initial state of
this
BlobVersion. |
String[] getModifications() throws IOException
IOExceptionBlobObject open(String uri) throws IOException, IllegalStateException
BlobObject for reading or writing if this
BlobVersion has not be committed. Opens a read-only
BlobObject using this version if this BlobVersion is
closed.IllegalStateException - if this BlobVersion has been committed and the blob
is not listed in getModifications().IOExceptionvoid prepare()
throws IOException
commit() or rollback() is called from this thread.
Checks that the blobs read or written in this BlobVersion were
not changed in another BlobVersion since they were opened.IOException - if a blob opened in this BlobVersion had since
changed.void commit()
throws IOException
BlobVersion available
to others. This method can only be called at most once for a given
BlobVersion; once this method is called this state is closed and
only the modified blobs can be opened.IOException - if a blob opened in this BlobVersion had since
changed.void rollback()
throws IOException
BlobVersion.IOExceptionboolean erase()
throws IOException
BlobVersion.true if all blobs of this version were removed
successfully.IOExceptionCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.