public class URLRepository extends BlobStoreRepository
This repository supports the following settings
url
concurrent_streams
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWED_URLS_SETTING |
static String[] |
DEFAULT_SUPPORTED_PROTOCOLS |
static String |
SUPPORTED_PROTOCOLS_SETTING |
static String |
TYPE |
repositoryName
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
URLRepository(RepositoryName name,
RepositorySettings repositorySettings,
IndexShardRepository indexShardRepository,
Environment environment)
Constructs new read-only URL-based repository
|
Modifier and Type | Method and Description |
---|---|
protected BlobPath |
basePath()
Returns base path of the repository
|
protected BlobStore |
blobStore()
Returns initialized and ready to use BlobStore
|
boolean |
readOnly()
Returns true if the repository supports only read operations
|
List<SnapshotId> |
snapshots()
Returns the list of snapshots currently stored in the repository
|
chunkSize, deleteSnapshot, doClose, doStart, doStop, endVerification, finalizeSnapshot, initializeSnapshot, isCompress, legacyMetaData, onRestorePause, onSnapshotPause, readSnapshot, readSnapshotList, readSnapshotMetaData, restoreThrottleTimeInNanos, snapshotThrottleTimeInNanos, startVerification, testBlobPrefix, writeSnapshotList
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
close
public static final String TYPE
public static final String[] DEFAULT_SUPPORTED_PROTOCOLS
public static final String SUPPORTED_PROTOCOLS_SETTING
public static final String ALLOWED_URLS_SETTING
@Inject public URLRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException
name
- repository namerepositorySettings
- repository settingsindexShardRepository
- shard repositoryIOException
protected BlobStore blobStore()
This method is first called in the BlobStoreRepository.doStart()
method.
blobStore
in class BlobStoreRepository
protected BlobPath basePath()
BlobStoreRepository
basePath
in class BlobStoreRepository
public List<SnapshotId> snapshots()
BlobStoreRepository
snapshots
in interface Repository
snapshots
in class BlobStoreRepository
public boolean readOnly()
Repository
readOnly
in interface Repository
readOnly
in class BlobStoreRepository
Copyright © 2009–2016. All rights reserved.