|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.store.blob.disk.DiskBlobStore
public class DiskBlobStore
| Constructor Summary | |
|---|---|
DiskBlobStore(File dir)
|
|
| Method Summary | |
|---|---|
protected void |
changed(String version,
Collection<String> blobs,
File entry,
Collection<String> previousVersions)
|
boolean |
equals(Object obj)
|
boolean |
erase()
Remove all blobs from all transactions and all the history. |
protected File |
getDirectory()
|
String[] |
getRecentModifications()
Most recent blobs that have committed modifications. |
int |
hashCode()
|
protected void |
lock()
|
DiskBlobVersion |
newVersion()
Create a new BlobVersion using a generated version ID. |
DiskBlobVersion |
newVersion(String version)
Create a new BlobVersion maybe with the given unique ID. |
BlobObject |
open(String uri)
Opens a BlobObject for reading or writing. |
DiskBlobVersion |
openVersion(String version)
Open a read-only BlobVersion of the blob(s) with this version. |
protected Lock |
readLock()
|
protected void |
removeFromIndex(String erasing)
|
String |
toString()
|
protected void |
unlock()
|
protected boolean |
unwatch(String uri,
DiskListener listener)
|
protected void |
watch(String uri,
DiskListener listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiskBlobStore(File dir)
throws IOException
IOException| Method Detail |
|---|
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public 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 BlobStoreIOException
public DiskBlobVersion newVersion()
throws IOException
BlobStoreBlobVersion using a generated version ID.
newVersion in interface BlobStoreIOException
public DiskBlobVersion newVersion(String version)
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 BlobStoreversion - to uniquely identify new blob versions, this may or may not
actually be used
IOException
public DiskBlobVersion openVersion(String version)
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 BlobStoreversion - version of blob to read
BlobVersion
IOException
public String[] getRecentModifications()
throws IOException
BlobStore
getRecentModifications in interface BlobStoreIOException
public boolean erase()
throws IOException
BlobStore
erase in interface BlobStoretrue if the store was successfully deleted.
IOExceptionprotected File getDirectory()
protected void watch(String uri,
DiskListener listener)
protected boolean unwatch(String uri,
DiskListener listener)
protected Lock readLock()
protected void lock()
protected void unlock()
protected void changed(String version,
Collection<String> blobs,
File entry,
Collection<String> previousVersions)
throws IOException
IOException
protected void removeFromIndex(String erasing)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||