Class NodeOperatingSystemInfo

java.lang.Object
co.elastic.clients.elasticsearch.nodes.info.NodeOperatingSystemInfo
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class NodeOperatingSystemInfo extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • arch

      public final String arch()
      Required - Name of the JVM architecture (ex: amd64, x86)

      API name: arch

    • availableProcessors

      public final int availableProcessors()
      Required - Number of processors available to the Java virtual machine

      API name: available_processors

    • allocatedProcessors

      @Nullable public final Integer allocatedProcessors()
      The number of processors actually used to calculate thread pool size. This number can be set with the node.processors setting of a node and defaults to the number of processors reported by the OS.

      API name: allocated_processors

    • name

      public final String name()
      Required - Name of the operating system (ex: Linux, Windows, Mac OS X)

      API name: name

    • prettyName

      public final String prettyName()
      Required - API name: pretty_name
    • refreshIntervalInMillis

      public final long refreshIntervalInMillis()
      Required - Refresh interval for the OS statistics

      API name: refresh_interval_in_millis

    • version

      public final String version()
      Required - Version of the operating system

      API name: version

    • cpu

      @Nullable public final NodeInfoOSCPU cpu()
      API name: cpu
    • mem

      @Nullable public final NodeInfoMemory mem()
      API name: mem
    • swap

      @Nullable public final NodeInfoMemory swap()
      API name: swap
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupNodeOperatingSystemInfoDeserializer

      protected static void setupNodeOperatingSystemInfoDeserializer(ObjectDeserializer<NodeOperatingSystemInfo.Builder> op)