All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted

public class NodeInfo
extends BaseNodeResponse
Node information (static, does not change over time).
  • Constructor Details

  • Method Details

    • getHostname

      @Nullable public java.lang.String getHostname()
      System's hostname. null in case of UnknownHostException
    • getVersion

      public Version getVersion()
      The current ES version
    • getBuild

      public Build getBuild()
      The build version of the node.
    • getSettings

      @Nullable public Settings getSettings()
      The settings of the node.
    • getInfo

      public <T extends ReportingService.Info> T getInfo​(java.lang.Class<T> clazz)
      Get a particular info object, e.g. JvmInfo or OsInfo. This generic method handles all casting in order to spare client classes the work of explicit casts. This NodeInfo class guarantees type safety for these stored info blocks.
      Type Parameters:
      T - Specific subtype of ReportingService.Info to retrieve.
      Parameters:
      clazz - Class for retrieval.
      Returns:
      An object of type T.
    • getTotalIndexingBuffer

      @Nullable public ByteSizeValue getTotalIndexingBuffer()
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BaseNodeResponse
      Throws:
      java.io.IOException