Class AzureRepository
java.lang.Object
org.opensearch.common.lifecycle.AbstractLifecycleComponent
org.opensearch.repositories.blobstore.BlobStoreRepository
org.opensearch.repositories.blobstore.MeteredBlobStoreRepository
org.opensearch.repositories.azure.AzureRepository
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.common.lease.Releasable,org.opensearch.common.lifecycle.LifecycleComponent,Repository
Azure file system implementation of the BlobStoreRepository
Azure file system repository supports the following settings:
container- Azure container name. Defaults to opensearch-snapshots
base_path- Specifies the path within bucket to repository data. Defaults to root directory.
chunk_size- Large file can be divided into chunks. This parameter specifies the chunk size. Defaults to 64mb.
compress- If set to true metadata files will be stored compressed. Defaults to false.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.repositories.Repository
Repository.Factory -
Field Summary
FieldsFields inherited from class org.opensearch.repositories.blobstore.BlobStoreRepository
ALLOW_CONCURRENT_MODIFICATION, BUFFER_SIZE_SETTING, bufferSize, CACHE_REPOSITORY_DATA, clusterService, COMPRESS_SETTING, COMPRESSION_TYPE_SETTING, GLOBAL_METADATA_FORMAT, INDEX_FILE_PREFIX, INDEX_LATEST_BLOB, INDEX_METADATA_FORMAT, INDEX_SHARD_SNAPSHOT_FORMAT, INDEX_SHARD_SNAPSHOTS_FORMAT, MAX_SNAPSHOT_SHARD_BLOB_DELETE_BATCH_SIZE, metadata, METADATA_NAME_FORMAT, METADATA_PREFIX, READONLY_SETTING, REMOTE_STORE_INDEX_SHALLOW_COPY, REMOTE_STORE_SHARD_SHALLOW_COPY_SNAPSHOT_FORMAT, SHALLOW_SNAPSHOT_NAME_FORMAT, SHALLOW_SNAPSHOT_PREFIX, SNAPSHOT_FORMAT, SNAPSHOT_NAME_FORMAT, SNAPSHOT_PREFIX, SUPPORT_URL_REPO, supportURLRepo, SYSTEM_REPOSITORY_SETTING, threadPool, VIRTUAL_DATA_BLOB_PREFIXFields inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent
lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionAzureRepository(RepositoryMetadata metadata, org.opensearch.core.xcontent.NamedXContentRegistry namedXContentRegistry, AzureStorageService storageService, ClusterService clusterService, RecoverySettings recoverySettings) -
Method Summary
Modifier and TypeMethodDescriptionbasePath()protected org.opensearch.core.common.unit.ByteSizeValueprotected AzureBlobStoreprotected BlobStorebooleanMethods inherited from class org.opensearch.repositories.blobstore.MeteredBlobStoreRepository
reload, statsSnapshot, statsSnapshotForArchivalMethods inherited from class org.opensearch.repositories.blobstore.BlobStoreRepository
assertSnapshotOrGenericThread, blobContainer, blobStore, cleanup, cloneRemoteStoreIndexShardSnapshot, cloneShardSnapshot, deleteSnapshots, deleteSnapshotsAndReleaseLockFiles, doClose, doStart, doStop, endVerification, executeConsistentStateUpdate, finalizeSnapshot, getCompressor, getMetadata, getNamedXContentRegistry, getRemoteDownloadThrottleTimeInNanos, getRemoteStoreShallowCopyShardMetadata, getRemoteUploadThrottleTimeInNanos, getRepositoryData, getRestoreThrottleTimeInNanos, getShardSnapshotStatus, getSnapshotGlobalMetadata, getSnapshotIndexMetaData, getSnapshotInfo, getSnapshotThrottleTimeInNanos, initializeSnapshot, isCompress, isSystemRepository, loadShardSnapshot, maybeRateLimitRemoteDownloadTransfers, maybeRateLimitRemoteUploadTransfers, maybeRateLimitRestores, maybeRateLimitSnapshots, restoreShard, shardContainer, snapshotRemoteStoreIndexShard, snapshotShard, startVerification, stats, threadPool, toString, updateState, verify, writeIndexGenMethods inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.common.lifecycle.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stopMethods inherited from interface org.opensearch.common.lease.Releasable
closeMethods inherited from interface org.opensearch.repositories.Repository
adaptUserMetadata, isReloadable, validateMetadata
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
AzureRepository
public AzureRepository(RepositoryMetadata metadata, org.opensearch.core.xcontent.NamedXContentRegistry namedXContentRegistry, AzureStorageService storageService, ClusterService clusterService, RecoverySettings recoverySettings)
-
-
Method Details
-
getBlobStore
- Overrides:
getBlobStorein classBlobStoreRepository
-
createBlobStore
- Specified by:
createBlobStorein classBlobStoreRepository
-
basePath
- Specified by:
basePathin classBlobStoreRepository
-
chunkSize
protected org.opensearch.core.common.unit.ByteSizeValue chunkSize()- Overrides:
chunkSizein classBlobStoreRepository
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceRepository- Overrides:
isReadOnlyin classBlobStoreRepository
-
getRestrictedSystemRepositorySettings
- Specified by:
getRestrictedSystemRepositorySettingsin interfaceRepository- Overrides:
getRestrictedSystemRepositorySettingsin classBlobStoreRepository
-