java.io.Closeable
, java.lang.AutoCloseable
, LifecycleComponent
, Releasable
, Repository
public class FsRepository extends BlobStoreRepository
Shared file system repository supports the following settings
location
concurrent_streams
chunk_size
compress
Repository.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, settings
lifecycle
metadata, 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, nodeName
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
deleteSnapshot, doClose, doStart, doStop, endVerification, finalizeSnapshot, getMetadata, getRepositoryData, getRestoreThrottleTimeInNanos, getShardSnapshotStatus, getSnapshotInfo, getSnapshotMetaData, getSnapshotThrottleTimeInNanos, initializeSnapshot, isReadOnly, restoreShard, snapshotShard, startVerification, testBlobPrefix, toString, verify, writeIndexGen
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public FsRepository(RepositoryMetaData metadata, Environment environment, NamedXContentRegistry namedXContentRegistry) throws java.io.IOException
java.io.IOException
protected BlobStore blobStore()
BlobStoreRepository
blobStore
in class BlobStoreRepository
protected boolean isCompress()
BlobStoreRepository
isCompress
in class BlobStoreRepository
protected ByteSizeValue chunkSize()
BlobStoreRepository
This method should return null if no chunking is needed.
chunkSize
in class BlobStoreRepository
protected BlobPath basePath()
BlobStoreRepository
basePath
in class BlobStoreRepository