java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, Repositorypublic class FsRepository extends BlobStoreRepository
Shared file system repository supports the following settings
locationconcurrent_streamschunk_sizecompressRepository.Factory| Modifier and Type | Field | 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 |
deprecationLogger, logger, settingslifecyclemetadata, namedXContentRegistry| Constructor | Description |
|---|---|
FsRepository(RepositoryMetaData metadata,
Environment environment,
NamedXContentRegistry namedXContentRegistry) |
Constructs a shared file system repository.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected BlobPath |
basePath() |
Returns base path of the repository
|
protected BlobStore |
blobStore() |
Returns the BlobStore to read and write data.
|
protected ByteSizeValue |
chunkSize() |
Returns data file chunk size.
|
protected boolean |
isCompress() |
Returns true if metadata and snapshot files should be compressed
|
logDeprecatedSetting, logRemovedSetting, nodeNameaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopdeleteSnapshot, doClose, doStart, doStop, endVerification, finalizeSnapshot, getMetadata, getRepositoryData, getRestoreThrottleTimeInNanos, getShardSnapshotStatus, getSnapshotInfo, getSnapshotMetaData, getSnapshotThrottleTimeInNanos, initializeSnapshot, isReadOnly, restoreShard, snapshotShard, startVerification, testBlobPrefix, toString, verify, writeIndexGenaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic 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
public FsRepository(RepositoryMetaData metadata, Environment environment, NamedXContentRegistry namedXContentRegistry) throws java.io.IOException
java.io.IOExceptionprotected BlobStore blobStore()
BlobStoreRepositoryblobStore in class BlobStoreRepositoryprotected boolean isCompress()
BlobStoreRepositoryisCompress in class BlobStoreRepositoryprotected ByteSizeValue chunkSize()
BlobStoreRepositoryThis method should return null if no chunking is needed.
chunkSize in class BlobStoreRepositoryprotected BlobPath basePath()
BlobStoreRepositorybasePath in class BlobStoreRepository