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 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 |
metadata, namedXContentRegistry
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
FsRepository(RepositoryMetaData metadata,
Environment environment,
NamedXContentRegistry namedXContentRegistry)
Constructs a shared file system repository.
|
Modifier and Type | Method and 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
|
deleteSnapshot, doClose, doStart, doStop, endVerification, finalizeSnapshot, getMetadata, getRepositoryData, getRestoreThrottleTimeInNanos, getShardSnapshotStatus, getSnapshotInfo, getSnapshotMetaData, getSnapshotThrottleTimeInNanos, initializeSnapshot, isReadOnly, legacyMetaData, restoreShard, snapshotShard, startVerification, testBlobPrefix, toString, verify, writeIndexGen
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
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