Package org.opensearch.repositories.url
Class URLRepository
java.lang.Object
org.opensearch.common.lifecycle.AbstractLifecycleComponent
org.opensearch.repositories.blobstore.BlobStoreRepository
org.opensearch.repositories.url.URLRepository
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.common.lease.Releasable,org.opensearch.common.lifecycle.LifecycleComponent,Repository
Read-only URL-based implementation of the BlobStoreRepository
This repository supports the following settings
url- URL to the root of repository. This is mandatory parameter.
concurrent_streams- Number of concurrent read/write stream (per repository on each node). Defaults to 5.
-
Nested Class Summary
Nested 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, INDICES_DIR, MAX_SNAPSHOT_SHARD_BLOB_DELETE_BATCH_SIZE, metadata, METADATA_NAME_FORMAT, METADATA_PREFIX, PREFIX_MODE_VERIFICATION_SETTING, READONLY_SETTING, REMOTE_STORE_INDEX_SHALLOW_COPY, REMOTE_STORE_SHARD_SHALLOW_COPY_SNAPSHOT_FORMAT, SHALLOW_SNAPSHOT_NAME_FORMAT, SHALLOW_SNAPSHOT_PREFIX, SHALLOW_SNAPSHOT_V2, SHARD_PATH_TYPE, SNAPSHOT_FORMAT, SNAPSHOT_NAME_FORMAT, SNAPSHOT_PREFIX, SNAPSHOT_SHARD_PATH_PREFIX_SETTING, SNAPSHOT_SHARD_PATHS_FORMAT, SUPPORT_URL_REPO, supportURLRepo, SYSTEM_REPOSITORY_SETTING, threadPool, VIRTUAL_DATA_BLOB_PREFIXFields inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent
lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionURLRepository(RepositoryMetadata metadata, Environment environment, org.opensearch.core.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, RecoverySettings recoverySettings) Constructs a read-only URL-based repository -
Method Summary
Modifier and TypeMethodDescriptionbasePath()protected BlobContainerprotected BlobStoreprotected BlobStorebooleanMethods inherited from class org.opensearch.repositories.blobstore.BlobStoreRepository
assertSnapshotOrGenericThread, blobStore, chunkSize, cleanup, cloneRemoteStoreIndexShardSnapshot, cloneShardSnapshot, deleteSnapshots, deleteSnapshotsAndReleaseLockFiles, deleteSnapshotsInternal, deleteSnapshotsWithPinnedTimestamp, doClose, doStart, doStop, endVerification, executeConsistentStateUpdate, finalizeSnapshot, finalizeSnapshot, getCompressor, getLowPriorityRemoteUploadThrottleTimeInNanos, getMetadata, getNamedXContentRegistry, getRemoteDownloadThrottleTimeInNanos, getRemoteStoreShallowCopyShardMetadata, getRemoteUploadThrottleTimeInNanos, getRepositoryData, getRestoreThrottleTimeInNanos, getRestrictedSystemRepositorySettings, getShardSnapshotStatus, getShardSnapshotStatus, getSnapshotGlobalMetadata, getSnapshotIndexMetaData, getSnapshotInfo, getSnapshotShardPathBlobContainer, getSnapshotThrottleTimeInNanos, initializeSnapshot, isCompress, isSystemRepository, loadShardSnapshot, loadShardSnapshot, maybeRateLimitLowPriorityRemoteUploadTransfers, maybeRateLimitRemoteDownloadTransfers, maybeRateLimitRemoteUploadTransfers, maybeRateLimitRestores, maybeRateLimitSnapshots, releaseRemoteStoreLockAndCleanup, reload, remoteDirectoryCleanupAsync, restoreShard, rootBlobContainer, shardContainer, snapshotRemoteStoreIndexShard, snapshotShard, snapshotShardPathBlobContainer, 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:
-
SUPPORTED_PROTOCOLS_SETTING
-
ALLOWED_URLS_SETTING
-
URL_SETTING
-
REPOSITORIES_URL_SETTING
-
-
Constructor Details
-
URLRepository
public URLRepository(RepositoryMetadata metadata, Environment environment, org.opensearch.core.xcontent.NamedXContentRegistry namedXContentRegistry, ClusterService clusterService, RecoverySettings recoverySettings) Constructs a read-only URL-based repository
-
-
Method Details
-
createBlobStore
- Specified by:
createBlobStorein classBlobStoreRepository
-
blobContainer
- Overrides:
blobContainerin classBlobStoreRepository
-
getBlobStore
- Overrides:
getBlobStorein classBlobStoreRepository
-
basePath
- Specified by:
basePathin classBlobStoreRepository
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceRepository- Overrides:
isReadOnlyin classBlobStoreRepository
-