public class FsRepository extends BlobStoreRepository
Shared file system repository supports the following settings
location
concurrent_streams
chunk_size
compress
Modifier and Type | Field and Description |
---|---|
static Setting<ByteSizeValue> |
CHUNK_SIZE_SETTING |
static Setting<java.lang.Boolean> |
COMPRESS_SETTING |
static Setting<java.lang.String> |
LOCATION_SETTING |
static Setting<ByteSizeValue> |
REPOSITORIES_CHUNK_SIZE_SETTING |
static Setting<java.lang.Boolean> |
REPOSITORIES_COMPRESS_SETTING |
static Setting<java.lang.String> |
REPOSITORIES_LOCATION_SETTING |
static java.lang.String |
TYPE |
repositoryName
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
FsRepository(RepositoryName name,
RepositorySettings repositorySettings,
IndexShardRepository indexShardRepository,
Environment environment)
Constructs new shared file system 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
|
protected ByteSizeValue |
chunkSize()
Returns data file chunk size.
|
protected boolean |
isCompress()
Returns true if metadata and snapshot files should be compressed
|
deleteSnapshot, doClose, doStart, doStop, endVerification, finalizeSnapshot, initializeSnapshot, legacyMetaData, onRestorePause, onSnapshotPause, readOnly, readSnapshot, readSnapshotList, readSnapshotMetaData, restoreThrottleTimeInNanos, snapshots, 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.lang.String> LOCATION_SETTING
public static final Setting<java.lang.String> REPOSITORIES_LOCATION_SETTING
public static final Setting<ByteSizeValue> CHUNK_SIZE_SETTING
public static final Setting<ByteSizeValue> REPOSITORIES_CHUNK_SIZE_SETTING
public static final Setting<java.lang.Boolean> COMPRESS_SETTING
public static final Setting<java.lang.Boolean> REPOSITORIES_COMPRESS_SETTING
@Inject public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws java.io.IOException
name
- repository namerepositorySettings
- repository settingsindexShardRepository
- index shard repositoryjava.io.IOException
protected BlobStore blobStore()
This method is first called in the BlobStoreRepository.doStart()
method.
blobStore
in class BlobStoreRepository
protected boolean isCompress()
isCompress
in class BlobStoreRepository
protected ByteSizeValue chunkSize()
This method should return null if no chunking is needed.
chunkSize
in class BlobStoreRepository
protected BlobPath basePath()
BlobStoreRepository
basePath
in class BlobStoreRepository