Class AzureRepository
- java.lang.Object
-
- org.opensearch.common.component.AbstractLifecycleComponent
-
- org.opensearch.repositories.blobstore.BlobStoreRepository
-
- org.opensearch.repositories.blobstore.MeteredBlobStoreRepository
-
- org.opensearch.repositories.azure.AzureRepository
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,LifecycleComponent,Releasable,Repository
public class AzureRepository extends MeteredBlobStoreRepository
Azure file system implementation of the BlobStoreRepositoryAzure 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 Classes Modifier and Type Class Description static classAzureRepository.Repository-
Nested classes/interfaces inherited from interface org.opensearch.repositories.Repository
Repository.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE-
Fields inherited from class org.opensearch.repositories.blobstore.BlobStoreRepository
ALLOW_CONCURRENT_MODIFICATION, BUFFER_SIZE_SETTING, bufferSize, CACHE_REPOSITORY_DATA, GLOBAL_METADATA_FORMAT, INDEX_FILE_PREFIX, INDEX_LATEST_BLOB, INDEX_METADATA_FORMAT, INDEX_SHARD_SNAPSHOT_FORMAT, INDEX_SHARD_SNAPSHOTS_FORMAT, metadata, METADATA_NAME_FORMAT, METADATA_PREFIX, SNAPSHOT_FORMAT, SNAPSHOT_NAME_FORMAT, SNAPSHOT_PREFIX, SUPPORT_URL_REPO, supportURLRepo, threadPool
-
Fields inherited from class org.opensearch.common.component.AbstractLifecycleComponent
lifecycle
-
-
Constructor Summary
Constructors Constructor Description AzureRepository(RepositoryMetadata metadata, NamedXContentRegistry namedXContentRegistry, AzureStorageService storageService, ClusterService clusterService, RecoverySettings recoverySettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobPathbasePath()protected ByteSizeValuechunkSize()protected AzureBlobStorecreateBlobStore()protected BlobStoregetBlobStore()booleanisReadOnly()-
Methods inherited from class org.opensearch.repositories.blobstore.MeteredBlobStoreRepository
statsSnapshot, statsSnapshotForArchival
-
Methods inherited from class org.opensearch.repositories.blobstore.BlobStoreRepository
assertSnapshotOrGenericThread, blobContainer, blobStore, cleanup, cloneShardSnapshot, deleteSnapshots, doClose, doStart, doStop, endVerification, executeConsistentStateUpdate, finalizeSnapshot, getMetadata, getRepositoryData, getRestoreThrottleTimeInNanos, getShardSnapshotStatus, getSnapshotGlobalMetadata, getSnapshotIndexMetaData, getSnapshotInfo, getSnapshotThrottleTimeInNanos, initializeSnapshot, isCompress, loadShardSnapshot, maybeRateLimitRestores, maybeRateLimitSnapshots, restoreShard, shardContainer, snapshotShard, startVerification, stats, threadPool, toString, updateState, verify, writeIndexGen
-
Methods inherited from class org.opensearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opensearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from interface org.opensearch.common.lease.Releasable
close
-
Methods inherited from interface org.opensearch.repositories.Repository
adaptUserMetadata
-
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AzureRepository
public AzureRepository(RepositoryMetadata metadata, NamedXContentRegistry namedXContentRegistry, AzureStorageService storageService, ClusterService clusterService, RecoverySettings recoverySettings)
-
-
Method Detail
-
getBlobStore
protected BlobStore getBlobStore()
- Overrides:
getBlobStorein classBlobStoreRepository
-
createBlobStore
protected AzureBlobStore createBlobStore()
- Specified by:
createBlobStorein classBlobStoreRepository
-
basePath
public BlobPath basePath()
- Specified by:
basePathin classBlobStoreRepository
-
chunkSize
protected ByteSizeValue chunkSize()
- Overrides:
chunkSizein classBlobStoreRepository
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceRepository- Overrides:
isReadOnlyin classBlobStoreRepository
-
-