public class FsRepository extends BlobStoreRepository
Shared file system repository supports the following settings
locationconcurrent_streamschunk_sizecompress| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
repositoryNamelifecycledeprecationLogger, 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, 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
@Inject public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException
name - repository namerepositorySettings - repository settingsindexShardRepository - index shard repositoryIOExceptionprotected BlobStore blobStore()
This method is first called in the BlobStoreRepository.doStart() method.
blobStore in class BlobStoreRepositoryprotected boolean isCompress()
isCompress in class BlobStoreRepositoryprotected ByteSizeValue chunkSize()
This method should return null if no chunking is needed.
chunkSize in class BlobStoreRepositoryprotected BlobPath basePath()
BlobStoreRepositorybasePath in class BlobStoreRepositoryCopyright © 2009–2017. All rights reserved.