public class FSBackend extends org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend
| Modifier and Type | Field and Description |
|---|---|
static String |
FS_BACKEND_PATH |
| Constructor and Description |
|---|
FSBackend() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadataRecord(File input,
String name) |
void |
addMetadataRecord(InputStream input,
String name) |
void |
close() |
void |
deleteAllMetadataRecords(String prefix) |
boolean |
deleteMetadataRecord(String name) |
void |
deleteRecord(DataIdentifier identifier) |
boolean |
exists(DataIdentifier identifier) |
Iterator<DataIdentifier> |
getAllIdentifiers() |
List<DataRecord> |
getAllMetadataRecords(String prefix) |
Iterator<DataRecord> |
getAllRecords() |
DataRecord |
getMetadataRecord(String name) |
byte[] |
getOrCreateReferenceKey() |
DataRecord |
getRecord(DataIdentifier identifier) |
void |
init() |
boolean |
metadataRecordExists(String name) |
InputStream |
read(DataIdentifier identifier) |
void |
setProperties(Properties properties)
Properties used to configure the backend.
|
void |
write(DataIdentifier identifier,
File file) |
getReferenceFromIdentifierpublic static final String FS_BACKEND_PATH
public void init()
throws DataStoreException
DataStoreExceptionpublic InputStream read(DataIdentifier identifier) throws DataStoreException
DataStoreExceptionpublic void write(DataIdentifier identifier, File file) throws DataStoreException
DataStoreExceptionpublic DataRecord getRecord(DataIdentifier identifier) throws DataStoreException
DataStoreExceptionpublic Iterator<DataIdentifier> getAllIdentifiers() throws DataStoreException
DataStoreExceptionpublic boolean exists(DataIdentifier identifier) throws DataStoreException
DataStoreExceptionpublic void deleteRecord(DataIdentifier identifier) throws DataStoreException
DataStoreExceptionpublic void addMetadataRecord(InputStream input, String name) throws DataStoreException
DataStoreExceptionpublic void addMetadataRecord(File input, String name) throws DataStoreException
DataStoreExceptionpublic DataRecord getMetadataRecord(String name)
public List<DataRecord> getAllMetadataRecords(String prefix)
public boolean deleteMetadataRecord(String name)
public void deleteAllMetadataRecords(String prefix)
public boolean metadataRecordExists(String name)
public Iterator<DataRecord> getAllRecords()
public void close()
throws DataStoreException
DataStoreExceptionpublic byte[] getOrCreateReferenceKey()
throws DataStoreException
getOrCreateReferenceKey in class org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackendDataStoreExceptionpublic void setProperties(Properties properties)
init() is invoked.properties - to configure BackendCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.