public class URLRepository extends BlobStoreRepository
This repository supports the following settings
urlconcurrent_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 |
repositoryNamelifecycledeprecationLogger, 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, writeSnapshotListaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclosepublic 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 repositoryIOExceptionprotected BlobStore blobStore()
This method is first called in the BlobStoreRepository.doStart() method.
blobStore in class BlobStoreRepositoryprotected BlobPath basePath()
BlobStoreRepositorybasePath in class BlobStoreRepositorypublic List<SnapshotId> snapshots()
BlobStoreRepositorysnapshots in interface Repositorysnapshots in class BlobStoreRepositorypublic boolean readOnly()
RepositoryreadOnly in interface RepositoryreadOnly in class BlobStoreRepositoryCopyright © 2009–2017. All rights reserved.