public abstract class LowLevelCacheEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DATA_SUFFIX |
protected String |
externalId |
protected org.modeshape.jcr.value.BinaryKey |
key |
| Modifier | Constructor and Description |
|---|---|
protected |
LowLevelCacheEntry(org.modeshape.jcr.value.BinaryKey key) |
| Modifier and Type | Method and Description |
|---|---|
FixityResult |
checkFixity(URI checksum,
long size)
Check the entry's InputStream against the checksum and size.
|
String |
getExternalId()
Return the external identifier.
|
abstract String |
getExternalIdentifier()
Generate a human-readable identifier for the location of this entry
|
abstract InputStream |
getInputStream()
Get a raw input stream from the underlying store
|
org.modeshape.jcr.value.BinaryKey |
getKey()
Get the BinaryKey for this cache entry
|
void |
setExternalId(String externalId)
Set a meaningful identifier from some higher level that we should
dutifully pass through.
|
abstract void |
storeValue(InputStream stream)
Send a raw input stream to the underlying store for this entry; used for
fixing e.g.
|
protected static final String DATA_SUFFIX
protected String externalId
protected final org.modeshape.jcr.value.BinaryKey key
protected LowLevelCacheEntry(org.modeshape.jcr.value.BinaryKey key)
public abstract InputStream getInputStream() throws org.modeshape.jcr.value.binary.BinaryStoreException
org.modeshape.jcr.value.binary.BinaryStoreExceptionpublic abstract void storeValue(InputStream stream) throws org.modeshape.jcr.value.binary.BinaryStoreException, IOException
stream - binary content to REPLACE the content in the storeorg.modeshape.jcr.value.binary.BinaryStoreExceptionIOExceptionpublic abstract String getExternalIdentifier()
public FixityResult checkFixity(URI checksum, long size) throws org.modeshape.jcr.value.binary.BinaryStoreException
checksum - size - digest - org.modeshape.jcr.value.binary.BinaryStoreExceptionpublic void setExternalId(String externalId)
externalId - some identifier for the cache storepublic String getExternalId()
public org.modeshape.jcr.value.BinaryKey getKey()
Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.