Class AbstractSharedCachingDataStore
java.lang.Object
org.apache.jackrabbit.oak.spi.blob.data.AbstractDataStore
org.apache.jackrabbit.oak.plugins.blob.AbstractSharedCachingDataStore
- All Implemented Interfaces:
TypedDataStore,SharedDataStore,org.apache.jackrabbit.oak.spi.blob.data.DataStore,org.apache.jackrabbit.oak.spi.blob.data.MultiDataStoreAware
- Direct Known Subclasses:
CachingFileDataStore
@Deprecated(since="2024-09-23")
public abstract class AbstractSharedCachingDataStore
extends org.apache.jackrabbit.oak.spi.blob.data.AbstractDataStore
implements org.apache.jackrabbit.oak.spi.blob.data.MultiDataStoreAware, SharedDataStore, TypedDataStore
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Cache files locally and stage files locally for async uploads.
Configuration:
<DataStore class="org.apache.jackrabbit.oak.plugins.blob.AbstractCachingDataStore">
<param name="path"/>
<param name="cacheSize" value="68719476736"/>
<param name="stagingSplitPercentage" value="10"/>
<param name="uploadThreads" value="10"/>
<param name="stagingPurgeInterval" value="300"/>
<param name="stagingRetryInterval " value="600"/>
</DataStore>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
SharedDataStore.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadataRecord(File f, String name) Deprecated.Adds the root record.voidaddMetadataRecord(InputStream stream, String name) Deprecated.------------------------ SharedDataStore methods -----------------------------------------*org.apache.jackrabbit.oak.spi.blob.data.DataRecordaddRecord(InputStream inputStream) Deprecated.org.apache.jackrabbit.oak.spi.blob.data.DataRecordaddRecord(InputStream inputStream, BlobOptions blobOptions) Deprecated.Add a record with specified options.voidDeprecated.------------------------ unimplemented methods -------------------------------------------*voidclose()Deprecated.voiddeleteAllMetadataRecords(String prefix) Deprecated.Deletes all records matching the given prefix.intdeleteAllOlderThan(long l) Deprecated.booleandeleteMetadataRecord(String name) Deprecated.Deletes the root record represented by the given parameters.voiddeleteRecord(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier dataIdentifier) Deprecated.booleanexists(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) Deprecated.Look in the backend for a record matching the given identifier.Iterator<org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier> Deprecated.In rare cases may include some duplicates in cases where async staged uploads complete during iteration.List<org.apache.jackrabbit.oak.spi.blob.data.DataRecord> getAllMetadataRecords(String prefix) Deprecated.Gets the all root records.Iterator<org.apache.jackrabbit.oak.spi.blob.data.DataRecord> Deprecated.Retrieved an iterator over all DataRecords.org.apache.jackrabbit.oak.spi.blob.data.DataRecordgetMetadataRecord(String name) Deprecated.Retrieves the metadata record with the given nameorg.apache.jackrabbit.oak.spi.blob.data.DataRecordgetRecord(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) Deprecated.org.apache.jackrabbit.oak.spi.blob.data.DataRecordgetRecordForId(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) Deprecated.Retrieves the record for the given identifier@Nullable org.apache.jackrabbit.oak.spi.blob.data.DataRecordgetRecordIfStored(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier dataIdentifier) Deprecated.getStats()Deprecated.getType()Deprecated.Gets the type.voidDeprecated.booleanmetadataRecordExists(String name) Deprecated.Checks if the metadata record with the name existsvoidsetCacheSize(long cacheSize) Deprecated.voidDeprecated.------------------------- setters ----------------------------------------------*voidsetStagingPurgeInterval(int stagingPurgeInterval) Deprecated.voidsetStagingRetryInterval(int stagingRetryInterval) Deprecated.voidsetStagingSplitPercentage(int stagingSplitPercentage) Deprecated.voidsetStatisticsProvider(StatisticsProvider statisticsProvider) Deprecated.voidsetUploadThreads(int uploadThreads) Deprecated.voidupdateModifiedDateOnAccess(long l) Deprecated.Methods inherited from class org.apache.jackrabbit.oak.spi.blob.data.AbstractDataStore
getRecordFromReferenceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.spi.blob.data.DataStore
getMinRecordLengthMethods inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
getRepositoryId, setRepositoryId
-
Constructor Details
-
AbstractSharedCachingDataStore
public AbstractSharedCachingDataStore()Deprecated.
-
-
Method Details
-
init
Deprecated.- Specified by:
initin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
getRecord
public org.apache.jackrabbit.oak.spi.blob.data.DataRecord getRecord(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.- Specified by:
getRecordin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Overrides:
getRecordin classorg.apache.jackrabbit.oak.spi.blob.data.AbstractDataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
getRecordIfStored
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.blob.data.DataRecord getRecordIfStored(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier dataIdentifier) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.- Specified by:
getRecordIfStoredin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
addRecord
public org.apache.jackrabbit.oak.spi.blob.data.DataRecord addRecord(InputStream inputStream) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.- Specified by:
addRecordin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
addRecord
public org.apache.jackrabbit.oak.spi.blob.data.DataRecord addRecord(InputStream inputStream, BlobOptions blobOptions) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.Description copied from interface:TypedDataStoreAdd a record with specified options.- Specified by:
addRecordin interfaceTypedDataStore- Parameters:
inputStream-blobOptions-- Returns:
- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
getAllIdentifiers
public Iterator<org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier> getAllIdentifiers() throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreExceptionDeprecated.In rare cases may include some duplicates in cases where async staged uploads complete during iteration.- Specified by:
getAllIdentifiersin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Returns:
- Iterator over all ids available
- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
deleteRecord
public void deleteRecord(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier dataIdentifier) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.- Specified by:
deleteRecordin interfaceorg.apache.jackrabbit.oak.spi.blob.data.MultiDataStoreAware- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
close
public void close() throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreExceptionDeprecated.- Specified by:
closein interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
exists
public boolean exists(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) Deprecated.Look in the backend for a record matching the given identifier. Returns true if such a record exists.- Parameters:
identifier- - An identifier for the record.- Returns:
- true if a record for the provided identifier can be found.
-
getStats
Deprecated. -
setPath
Deprecated.------------------------- setters ----------------------------------------------* -
setCacheSize
public void setCacheSize(long cacheSize) Deprecated. -
setStagingSplitPercentage
public void setStagingSplitPercentage(int stagingSplitPercentage) Deprecated. -
setUploadThreads
public void setUploadThreads(int uploadThreads) Deprecated. -
setStagingPurgeInterval
public void setStagingPurgeInterval(int stagingPurgeInterval) Deprecated. -
setStagingRetryInterval
public void setStagingRetryInterval(int stagingRetryInterval) Deprecated. -
setStatisticsProvider
Deprecated. -
addMetadataRecord
public void addMetadataRecord(InputStream stream, String name) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.------------------------ SharedDataStore methods -----------------------------------------*- Specified by:
addMetadataRecordin interfaceSharedDataStore- Parameters:
stream- the streamname- the name of the root record- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException- the data store exception
-
addMetadataRecord
public void addMetadataRecord(File f, String name) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.Description copied from interface:SharedDataStoreAdds the root record.- Specified by:
addMetadataRecordin interfaceSharedDataStore- Parameters:
f- the filename- the name of the root record- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException- the data store exception
-
getMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreRetrieves the metadata record with the given name- Specified by:
getMetadataRecordin interfaceSharedDataStore- Parameters:
name- the name of the record- Returns:
-
metadataRecordExists
Deprecated.Description copied from interface:SharedDataStoreChecks if the metadata record with the name exists- Specified by:
metadataRecordExistsin interfaceSharedDataStore- Parameters:
name-- Returns:
-
getAllMetadataRecords
public List<org.apache.jackrabbit.oak.spi.blob.data.DataRecord> getAllMetadataRecords(String prefix) Deprecated.Description copied from interface:SharedDataStoreGets the all root records.- Specified by:
getAllMetadataRecordsin interfaceSharedDataStore- Returns:
- the all root records
-
deleteMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreDeletes the root record represented by the given parameters.- Specified by:
deleteMetadataRecordin interfaceSharedDataStore- Parameters:
name- the name of the root record- Returns:
- success/failure
-
deleteAllMetadataRecords
Deprecated.Description copied from interface:SharedDataStoreDeletes all records matching the given prefix.- Specified by:
deleteAllMetadataRecordsin interfaceSharedDataStore- Parameters:
prefix- metadata type identifier
-
getAllRecords
public Iterator<org.apache.jackrabbit.oak.spi.blob.data.DataRecord> getAllRecords() throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreExceptionDeprecated.Description copied from interface:SharedDataStoreRetrieved an iterator over all DataRecords.- Specified by:
getAllRecordsin interfaceSharedDataStore- Returns:
- iterator over DataRecords
- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
getRecordForId
public org.apache.jackrabbit.oak.spi.blob.data.DataRecord getRecordForId(org.apache.jackrabbit.oak.spi.blob.data.DataIdentifier identifier) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.Description copied from interface:SharedDataStoreRetrieves the record for the given identifier- Specified by:
getRecordForIdin interfaceSharedDataStore- Parameters:
identifier- the if of the record- Returns:
- data record
- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-
getType
Deprecated.Description copied from interface:SharedDataStoreGets the type.- Specified by:
getTypein interfaceSharedDataStore- Returns:
- the type
-
clearInUse
public void clearInUse()Deprecated.------------------------ unimplemented methods -------------------------------------------*- Specified by:
clearInUsein interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore
-
updateModifiedDateOnAccess
public void updateModifiedDateOnAccess(long l) Deprecated.- Specified by:
updateModifiedDateOnAccessin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore
-
deleteAllOlderThan
public int deleteAllOlderThan(long l) throws org.apache.jackrabbit.oak.spi.blob.data.DataStoreException Deprecated.- Specified by:
deleteAllOlderThanin interfaceorg.apache.jackrabbit.oak.spi.blob.data.DataStore- Throws:
org.apache.jackrabbit.oak.spi.blob.data.DataStoreException
-