Class Storage.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Storage.Builder>
co.elastic.clients.elasticsearch.indices.Storage.Builder
- All Implemented Interfaces:
WithJson<Storage.Builder>,ObjectBuilder<Storage>
- Enclosing class:
- Storage
public static class Storage.Builder
extends WithJsonObjectBuilderBase<Storage.Builder>
implements ObjectBuilder<Storage>
Builder for
Storage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Storage.BuilderYou can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.build()Builds aStorage.protected Storage.Builderself()final Storage.BuilderstatsRefreshInterval(Time value) How often store statistics are refreshedfinal Storage.BuilderHow often store statistics are refreshedfinal Storage.Buildertype(StorageType value) Required - API name:typefinal Storage.BuilderRequired - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Required - API name:type -
type
Required - API name:type -
allowMmap
You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This setting is useful, for example, if you are in an environment where you can not control the ability to create a lot of memory maps so you need disable the ability to use memory-mapping.API name:
allow_mmap -
statsRefreshInterval
How often store statistics are refreshedAPI name:
stats_refresh_interval -
statsRefreshInterval
How often store statistics are refreshedAPI name:
stats_refresh_interval -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Storage.Builder>
-
build
Builds aStorage.- Specified by:
buildin interfaceObjectBuilder<Storage>- Throws:
NullPointerException- if some of the required fields are null.
-