Class DummyDataStore
- java.lang.Object
-
- org.apache.jackrabbit.core.data.AbstractDataStore
-
- org.apache.jackrabbit.core.data.FileDataStore
-
- org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore
-
- org.apache.jackrabbit.oak.run.cli.DummyDataStore
-
- All Implemented Interfaces:
DataStore
,MultiDataStoreAware
,SharedDataStore
public class DummyDataStore extends OakFileDataStore
DataStore implementation which creates empty files matching given identifier. This can be use to try migration of repositories where DataStore size is large and cannot be accessed as transferring them would take quite a bit of time. As migration does not involve accessing the actual binary content and only binary identifiers are transferred it should enable us to get past the migration phase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
SharedDataStore.Type
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore
LOG
-
Fields inherited from class org.apache.jackrabbit.core.data.FileDataStore
inUse
-
Fields inherited from class org.apache.jackrabbit.core.data.AbstractDataStore
DIGEST
-
-
Constructor Summary
Constructors Constructor Description DummyDataStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataRecord
getRecordIfStored(DataIdentifier identifier)
-
Methods inherited from class org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore
addMetadataRecord, addMetadataRecord, deleteAllMetadataRecords, deleteMetadataRecord, getAllIdentifiers, getAllMetadataRecords, getAllRecords, getMetadataRecord, getOrCreateReferenceKey, getRecordForId, getType, metadataRecordExists, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText
-
Methods inherited from class org.apache.jackrabbit.core.data.FileDataStore
addRecord, clearInUse, close, deleteAllOlderThan, deleteRecord, getMinRecordLength, getPath, init, setMinRecordLength, setPath, updateModifiedDateOnAccess
-
Methods inherited from class org.apache.jackrabbit.core.data.AbstractDataStore
encodeHexString, getRecord, getRecordFromReference, getReferenceFromIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
getRepositoryId, setRepositoryId
-
-
-
-
Method Detail
-
getRecordIfStored
public DataRecord getRecordIfStored(DataIdentifier identifier) throws DataStoreException
- Specified by:
getRecordIfStored
in interfaceDataStore
- Overrides:
getRecordIfStored
in classFileDataStore
- Throws:
DataStoreException
-
-