public class URLRepository extends BlobStoreRepository
This repository supports the following settings
url
concurrent_streams
Modifier and Type | Field and Description |
---|---|
static Setting<java.util.List<URIPattern>> |
ALLOWED_URLS_SETTING |
static Setting<java.lang.Boolean> |
LIST_DIRECTORIES_SETTING |
static Setting<java.lang.Boolean> |
REPOSITORIES_LIST_DIRECTORIES_SETTING |
static Setting<java.net.URL> |
REPOSITORIES_URL_SETTING |
static Setting<java.util.List<java.lang.String>> |
SUPPORTED_PROTOCOLS_SETTING |
static java.lang.String |
TYPE |
static Setting<java.net.URL> |
URL_SETTING |
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
|
java.util.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 java.lang.String TYPE
public static final Setting<java.util.List<java.lang.String>> SUPPORTED_PROTOCOLS_SETTING
public static final Setting<java.util.List<URIPattern>> ALLOWED_URLS_SETTING
public static final Setting<java.net.URL> URL_SETTING
public static final Setting<java.net.URL> REPOSITORIES_URL_SETTING
public static final Setting<java.lang.Boolean> LIST_DIRECTORIES_SETTING
public static final Setting<java.lang.Boolean> REPOSITORIES_LIST_DIRECTORIES_SETTING
@Inject public URLRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws java.io.IOException
name
- repository namerepositorySettings
- repository settingsindexShardRepository
- shard repositoryjava.io.IOException
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 java.util.List<SnapshotId> snapshots()
BlobStoreRepository
snapshots
in interface Repository
snapshots
in class BlobStoreRepository
public boolean readOnly()
Repository
readOnly
in interface Repository
readOnly
in class BlobStoreRepository