@Deprecated public class FileBlobStore extends Object implements BlobStore
| Constructor and Description |
|---|
FileBlobStore(File dir)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
changed(Collection<String> blobs)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
boolean |
erase()
Deprecated.
Remove all blobs from all transactions and all the history.
|
protected File |
getDirectory()
Deprecated.
|
String[] |
getRecentModifications()
Deprecated.
Most recent blobs that have committed modifications.
|
int |
hashCode()
Deprecated.
|
protected void |
lock()
Deprecated.
|
FileBlobVersion |
newVersion()
Deprecated.
Create a new
BlobVersion using a generated version ID. |
FileBlobVersion |
newVersion(String iri)
Deprecated.
Create a new
BlobVersion maybe with the given unique ID. |
BlobObject |
open(String uri)
Deprecated.
Opens a
BlobObject for reading or writing. |
FileBlobVersion |
openVersion(String iri)
Deprecated.
Open a read-only
BlobVersion of the blob(s) with this version. |
protected Lock |
readLock()
Deprecated.
|
String |
toString()
Deprecated.
|
protected void |
unlock()
Deprecated.
|
protected boolean |
unwatch(String uri,
FileListener listener)
Deprecated.
|
protected void |
watch(String uri,
FileListener listener)
Deprecated.
|
public FileBlobStore(File dir) throws IOException
IOExceptionpublic BlobObject open(String uri) throws IOException
BlobStoreBlobObject 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.open in interface BlobStoreIOExceptionpublic String[] getRecentModifications() throws IOException
BlobStoregetRecentModifications in interface BlobStoreIOExceptionpublic FileBlobVersion openVersion(String iri) throws IOException
BlobStoreBlobVersion of the blob(s) with this version.
Only blobs with the given version are accessible using the returned
BlobVersion.openVersion in interface BlobStoreiri - version of blob to readBlobVersionIOExceptionpublic FileBlobVersion newVersion() throws IOException
BlobStoreBlobVersion using a generated version ID.newVersion in interface BlobStoreIOExceptionpublic FileBlobVersion newVersion(String iri) throws IOException
BlobStoreBlobVersion maybe with the given unique ID.
BlobVersion returned from this method using a previously assigned
version have undefined consequences.newVersion in interface BlobStoreiri - to uniquely identify new blob versions, this may or may not
actually be usedIOExceptionpublic boolean erase()
throws IOException
BlobStoreerase in interface BlobStoretrue if the store was successfully deleted.IOExceptionprotected File getDirectory()
protected void watch(String uri, FileListener listener)
protected boolean unwatch(String uri, FileListener listener)
protected Lock readLock()
protected void lock()
protected void unlock()
protected void changed(Collection<String> blobs) throws IOException
IOExceptionCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.