Class SourceOnlyRepositorySettingsForSharedFileSystem
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettingsForSharedFileSystem
- All Implemented Interfaces:
SourceOnlyRepositorySettingsVariant,JsonpSerializable
@JsonpDeserializable
public class SourceOnlyRepositorySettingsForSharedFileSystem
extends Object
implements SourceOnlyRepositorySettingsVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forSourceOnlyRepositorySettingsForSharedFileSystem. -
Field Summary
FieldsModifier and TypeFieldDescriptionJson deserializer forSourceOnlyRepositorySettingsForSharedFileSystem -
Method Summary
Modifier and TypeMethodDescriptionSourceOnlyRepositorySettings variant kind.final Stringlocation()Required - The location of the shared filesystem used to store and retrieve snapshots.final IntegerThe maximum number of snapshots the repository can contain.of(Function<SourceOnlyRepositorySettingsForSharedFileSystem.Builder, ObjectBuilder<SourceOnlyRepositorySettingsForSharedFileSystem>> fn) final Booleanreadonly()Iftrue, the repository is read-only.rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupSourceOnlyRepositorySettingsForSharedFileSystemDeserializer(ObjectDeserializer<SourceOnlyRepositorySettingsForSharedFileSystem.Builder> op) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettingsVariant
_toSourceOnlyRepositorySettings
-
Field Details
-
_DESERIALIZER
public static final JsonpDeserializer<SourceOnlyRepositorySettingsForSharedFileSystem> _DESERIALIZERJson deserializer forSourceOnlyRepositorySettingsForSharedFileSystem
-
-
Method Details
-
of
-
_sourceOnlyRepositorySettingsKind
SourceOnlyRepositorySettings variant kind.- Specified by:
_sourceOnlyRepositorySettingsKindin interfaceSourceOnlyRepositorySettingsVariant
-
location
Required - The location of the shared filesystem used to store and retrieve snapshots. This location must be registered in thepath.reposetting on all master and data nodes in the cluster. Unlikepath.repo, this setting supports only a single file path.API name:
location -
maxNumberOfSnapshots
The maximum number of snapshots the repository can contain. The default isInteger.MAX_VALUE, which is 2^31-1 or2147483647.API name:
max_number_of_snapshots -
readonly
Iftrue, the repository is read-only. The cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.Only a cluster with write access can create snapshots in the repository. All other clusters connected to the repository should have the
readonlyparameter set totrue.If
false, the cluster can write to the repository and create snapshots in it.IMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository. Having multiple clusters write to the repository at the same time risks corrupting the contents of the repository.
API name:
readonly -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
SourceOnlyRepositorySettingsForSharedFileSystem.Builderinitialized with field values of this instance
-