Class AzureBlobStore
java.lang.Object
org.opensearch.repositories.azure.AzureBlobStore
- All Implemented Interfaces:
Closeable,AutoCloseable,BlobStore
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobStore(RepositoryMetadata metadata, AzureStorageService service, ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionblobContainer(BlobPath path) booleanblobExists(String blob) voidclose()voiddeleteBlob(String blob) deleteBlobDirectory(String path, Executor executor) getInputStream(String blob, long position, Long length) Gets the configuredLocationModefor the Azure storage requests.listBlobsByPrefix(String keyPath, String prefix) stats()toString()voidwriteBlob(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists)
-
Constructor Details
-
AzureBlobStore
public AzureBlobStore(RepositoryMetadata metadata, AzureStorageService service, ThreadPool threadPool)
-
-
Method Details
-
toString
-
getService
-
getLocationMode
Gets the configuredLocationModefor the Azure storage requests. -
blobContainer
- Specified by:
blobContainerin interfaceBlobStore
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
blobExists
public boolean blobExists(String blob) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageException
-
deleteBlob
public void deleteBlob(String blob) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageException
-
deleteBlobDirectory
public DeleteResult deleteBlobDirectory(String path, Executor executor) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException, IOException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageExceptionIOException
-
getInputStream
public InputStream getInputStream(String blob, long position, @Nullable Long length) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageException
-
listBlobsByPrefix
public Map<String,BlobMetadata> listBlobsByPrefix(String keyPath, String prefix) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageException
-
children
public Map<String,BlobContainer> children(BlobPath path) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageException
-
writeBlob
public void writeBlob(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) throws URISyntaxException, com.azure.storage.blob.models.BlobStorageException, IOException - Throws:
URISyntaxExceptioncom.azure.storage.blob.models.BlobStorageExceptionIOException
-
stats
-