DataRecord |
CachingDataStore.addRecord(InputStream input) |
Creates a new data record in Backend .
|
DataRecord |
DataStore.addRecord(InputStream stream) |
Creates a new data record.
|
DataRecord |
FileDataStore.addRecord(InputStream input) |
Creates a new data record.
|
DataRecord |
MultiDataStore.addRecord(InputStream stream) |
Creates a new data record in the primary data store.
|
void |
AbstractBackend.close() |
Close backend and release resources like database connection if any.
|
void |
Backend.close() |
Close backend and release resources like database connection if any.
|
void |
CachingDataStore.close() |
|
void |
DataStore.close() |
Close the data store
|
void |
MultiDataStore.close() |
Close the data store
|
Set<DataIdentifier> |
Backend.deleteAllOlderThan(long timestamp) |
Delete all records which are older than timestamp.
|
int |
CachingDataStore.deleteAllOlderThan(long min) |
|
int |
DataStore.deleteAllOlderThan(long min) |
Delete objects that have a modified date older than the specified date.
|
Set<DataIdentifier> |
FSBackend.deleteAllOlderThan(long min) |
|
int |
MultiDataStore.deleteAllOlderThan(long min) |
Delete objects that have a modified date older than the specified date
from the archive data store.
|
void |
CachingDataStore.deleteFromCache(DataIdentifier identifier) |
|
void |
Backend.deleteRecord(DataIdentifier identifier) |
Delete record identified by identifier.
|
void |
CachingDataStore.deleteRecord(DataIdentifier identifier) |
|
void |
FileDataStore.deleteRecord(DataIdentifier identifier) |
|
void |
FSBackend.deleteRecord(DataIdentifier identifier) |
|
void |
MultiDataStoreAware.deleteRecord(DataIdentifier identifier) |
Deletes a single DataRecord based on the given identifier.
|
boolean |
Backend.exists(DataIdentifier identifier) |
This method check the existence of record in backend.
|
boolean |
Backend.exists(DataIdentifier identifier,
boolean touch) |
This method check the existence of record in backend.
|
boolean |
FSBackend.exists(DataIdentifier identifier) |
|
boolean |
FSBackend.exists(DataIdentifier identifier,
boolean touch) |
|
Iterator<DataIdentifier> |
Backend.getAllIdentifiers() |
Returns identifiers of all records that exists in backend.
|
Iterator<DataIdentifier> |
CachingDataStore.getAllIdentifiers() |
Retrieves all identifiers from Backend .
|
Iterator<DataIdentifier> |
DataStore.getAllIdentifiers() |
Get all identifiers.
|
Iterator<DataIdentifier> |
FSBackend.getAllIdentifiers() |
|
Iterator<DataIdentifier> |
MultiDataStore.getAllIdentifiers() |
Get all identifiers from the archive data store.
|
long |
Backend.getLastModified(DataIdentifier identifier) |
Return lastModified of record identified by identifier.
|
long |
CachingDataStore.getLastModified(DataIdentifier identifier) |
Return lastModified of record from Backend assuming
Backend as a single source of truth.
|
long |
FSBackend.getLastModified(DataIdentifier identifier) |
|
long |
Backend.getLength(DataIdentifier identifier) |
Return length of record identified by identifier.
|
long |
CachingDataRecord.getLength() |
|
long |
CachingDataStore.getLength(DataIdentifier identifier) |
Return the length of record from LocalCache if available,
otherwise retrieve it from Backend .
|
long |
DataRecord.getLength() |
Returns the length of the binary stream in this record.
|
long |
FSBackend.getLength(DataIdentifier identifier) |
|
protected byte[] |
AbstractDataStore.getOrCreateReferenceKey() |
Returns the reference key of this data store.
|
protected byte[] |
CachingDataStore.getOrCreateReferenceKey() |
|
protected byte[] |
FileDataStore.getOrCreateReferenceKey() |
|
DataRecord |
AbstractDataStore.getRecord(DataIdentifier identifier) |
|
DataRecord |
CachingDataStore.getRecord(DataIdentifier identifier) |
|
DataRecord |
DataStore.getRecord(DataIdentifier identifier) |
Returns the identified data record.
|
DataRecord |
MultiDataStore.getRecord(DataIdentifier identifier) |
Returns the identified data record from the primary data store.
|
DataRecord |
AbstractDataStore.getRecordFromReference(String reference) |
|
DataRecord |
DataStore.getRecordFromReference(String reference) |
Returns the record that matches the given binary reference.
|
DataRecord |
MultiDataStore.getRecordFromReference(String reference) |
|
DataRecord |
CachingDataStore.getRecordIfStored(DataIdentifier identifier) |
Get a data record for the given identifier or null it data record doesn't
exist in Backend
|
DataRecord |
DataStore.getRecordIfStored(DataIdentifier identifier) |
Check if a record for the given identifier exists, and return it if yes.
|
DataRecord |
FileDataStore.getRecordIfStored(DataIdentifier identifier) |
Get a data record for the given identifier.
|
DataRecord |
MultiDataStore.getRecordIfStored(DataIdentifier identifier) |
Check if a record for the given identifier exists in the primary data
store.
|
InputStream |
CachingDataRecord.getStream() |
|
InputStream |
DataRecord.getStream() |
Returns the the binary stream in this record.
|
InputStream |
FileDataRecord.getStream() |
Returns the the binary stream in this record.
|
void |
AbstractBackend.init(CachingDataStore dataStore,
String homeDir,
String config) |
This method initialize backend with the configuration.
|
void |
Backend.init(CachingDataStore store,
String homeDir,
String config) |
This method initialize backend with the configuration.
|
void |
FSBackend.init(CachingDataStore store,
String homeDir,
String config) |
|
void |
FSBackend.init(CachingDataStore store,
String homeDir,
Properties prop) |
|
InputStream |
Backend.read(DataIdentifier identifier) |
Return inputstream of record identified by identifier.
|
InputStream |
FSBackend.read(DataIdentifier identifier) |
|
void |
Backend.touch(DataIdentifier identifier,
long minModifiedDate) |
Update the lastModified of record if it's lastModified < minModifiedDate.
|
void |
FSBackend.touch(DataIdentifier identifier,
long minModifiedDate) |
|
void |
Backend.touchAsync(DataIdentifier identifier,
long minModifiedDate,
AsyncTouchCallback callback) |
Update the lastModified of record if it's lastModified < minModifiedDate
asynchronously.
|
void |
FSBackend.touchAsync(DataIdentifier identifier,
long minModifiedDate,
AsyncTouchCallback callback) |
|
void |
Backend.write(DataIdentifier identifier,
File file) |
Stores file to backend with identifier used as key.
|
void |
FSBackend.write(DataIdentifier identifier,
File src) |
|
void |
Backend.writeAsync(DataIdentifier identifier,
File file,
AsyncUploadCallback callback) |
Write file to backend in asynchronous mode.
|
void |
FSBackend.writeAsync(DataIdentifier identifier,
File src,
AsyncUploadCallback callback) |
|