@Deprecated public class FileBlobVersion extends Object implements BlobVersion
| Modifier | Constructor and Description |
|---|---|
protected |
FileBlobVersion(FileBlobStore store)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Deprecated.
Makes the changes to the open blobs in this
BlobVersion available
to others. |
boolean |
equals(Object obj)
Deprecated.
|
boolean |
erase()
Deprecated.
Reverts all committed changes to blobs from this
BlobVersion. |
protected File |
getDirectory()
Deprecated.
|
String[] |
getModifications()
Deprecated.
Blobs that have been modified in this version.
|
int |
hashCode()
Deprecated.
|
BlobObject |
open(String uri)
Deprecated.
Opens a
BlobObject for reading or writing if this
BlobVersion has not be committed. |
void |
prepare()
Deprecated.
Prevents any further changes to the store from other threads until
BlobVersion.commit() or BlobVersion.rollback() is called from this thread. |
protected Lock |
readLock()
Deprecated.
|
void |
rollback()
Deprecated.
Aborts all uncommitted changes to blobs, restoring the initial state of
this
BlobVersion. |
protected boolean |
unwatch(String uri,
FileListener listener)
Deprecated.
|
protected void |
watch(String uri,
FileListener listener)
Deprecated.
|
protected FileBlobVersion(FileBlobStore store) throws IOException
IOExceptionpublic boolean erase()
throws IOException
BlobVersionBlobVersion.erase in interface BlobVersiontrue if all blobs of this version were removed
successfully.IOExceptionpublic String[] getModifications() throws IOException
BlobVersiongetModifications in interface BlobVersionIOExceptionpublic BlobObject open(String uri)
BlobVersionBlobObject for reading or writing if this
BlobVersion has not be committed. Opens a read-only
BlobObject using this version if this BlobVersion is
closed.open in interface BlobVersionpublic void prepare()
throws IOException
BlobVersionBlobVersion.commit() or BlobVersion.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.prepare in interface BlobVersionIOException - if a blob opened in this BlobVersion had since
changed.public void commit()
throws IOException
BlobVersionBlobVersion 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.commit in interface BlobVersionIOException - if a blob opened in this BlobVersion had since
changed.public void rollback()
BlobVersionBlobVersion.rollback in interface BlobVersionprotected File getDirectory()
protected void watch(String uri, FileListener listener)
protected boolean unwatch(String uri, FileListener listener)
protected Lock readLock()
Copyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.