Class AzureBlobStoreBackend
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend
-
- org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage.AzureBlobStoreBackend
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.spi.blob.SharedBackend
public class AzureBlobStoreBackend extends org.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend
-
-
Constructor Summary
Constructors Constructor Description AzureBlobStoreBackend()
-
Method Summary
-
-
-
Method Detail
-
setProperties
public void setProperties(Properties properties)
-
getAzureContainer
protected com.microsoft.azure.storage.blob.CloudBlobContainer getAzureContainer() throws DataStoreException- Throws:
DataStoreException
-
getBlobRequestOptions
@NotNull protected @NotNull com.microsoft.azure.storage.blob.BlobRequestOptions getBlobRequestOptions()
-
init
public void init() throws DataStoreException- Throws:
DataStoreException
-
read
public InputStream read(DataIdentifier identifier) throws DataStoreException
- Throws:
DataStoreException
-
write
public void write(DataIdentifier identifier, File file) throws DataStoreException
- Throws:
DataStoreException
-
getOrCreateReferenceKey
public byte[] getOrCreateReferenceKey() throws DataStoreException- Overrides:
getOrCreateReferenceKeyin classorg.apache.jackrabbit.oak.spi.blob.AbstractSharedBackend- Throws:
DataStoreException
-
getRecord
public DataRecord getRecord(DataIdentifier identifier) throws DataStoreException
- Throws:
DataStoreException
-
getAllIdentifiers
public Iterator<DataIdentifier> getAllIdentifiers()
-
getAllRecords
public Iterator<DataRecord> getAllRecords()
-
exists
public boolean exists(DataIdentifier identifier) throws DataStoreException
- Throws:
DataStoreException
-
close
public void close() throws DataStoreException- Throws:
DataStoreException
-
deleteRecord
public void deleteRecord(DataIdentifier identifier) throws DataStoreException
- Throws:
DataStoreException
-
addMetadataRecord
public void addMetadataRecord(InputStream input, String name) throws DataStoreException
- Throws:
DataStoreException
-
addMetadataRecord
public void addMetadataRecord(File input, String name) throws DataStoreException
- Throws:
DataStoreException
-
getMetadataRecord
public DataRecord getMetadataRecord(String name)
-
getAllMetadataRecords
public List<DataRecord> getAllMetadataRecords(String prefix)
-
deleteMetadataRecord
public boolean deleteMetadataRecord(String name)
-
deleteAllMetadataRecords
public void deleteAllMetadataRecords(String prefix)
-
metadataRecordExists
public boolean metadataRecordExists(String name)
-
-