Class MemStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MemStats.Builder>
co.elastic.clients.elasticsearch.ml.get_memory_stats.MemStats.Builder
- All Implemented Interfaces:
WithJson<MemStats.Builder>
,ObjectBuilder<MemStats>
- Enclosing class:
- MemStats
public static class MemStats.Builder extends WithJsonObjectBuilderBase<MemStats.Builder> implements ObjectBuilder<MemStats>
Builder for
MemStats
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MemStats.Builder
adjustedTotal(java.lang.String value)
If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value.MemStats.Builder
adjustedTotalInBytes(int value)
Required - If the amount of physical memory has been overridden using thees.total_memory_bytes
system property then this reports the overridden value in bytes.MemStats
build()
Builds aMemStats
.MemStats.Builder
ml(MemMlStats value)
Required - Contains statistics about machine learning use of native memory on the node.MemStats.Builder
ml(java.util.function.Function<MemMlStats.Builder,ObjectBuilder<MemMlStats>> fn)
Required - Contains statistics about machine learning use of native memory on the node.protected MemStats.Builder
self()
MemStats.Builder
total(java.lang.String value)
Total amount of physical memory.MemStats.Builder
totalInBytes(int value)
Required - Total amount of physical memory in bytes.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adjustedTotal
If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value. Otherwise it reports the same value as total.API name:
adjusted_total
-
adjustedTotalInBytes
Required - If the amount of physical memory has been overridden using thees.total_memory_bytes
system property then this reports the overridden value in bytes. Otherwise it reports the same value astotal_in_bytes
.API name:
adjusted_total_in_bytes
-
total
Total amount of physical memory.API name:
total
-
totalInBytes
Required - Total amount of physical memory in bytes.API name:
total_in_bytes
-
ml
Required - Contains statistics about machine learning use of native memory on the node.API name:
ml
-
ml
public final MemStats.Builder ml(java.util.function.Function<MemMlStats.Builder,ObjectBuilder<MemMlStats>> fn)Required - Contains statistics about machine learning use of native memory on the node.API name:
ml
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MemStats.Builder>
-
build
Builds aMemStats
.- Specified by:
build
in interfaceObjectBuilder<MemStats>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-