Class NodeInfo
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.support.nodes.BaseNodeResponse
org.elasticsearch.action.admin.cluster.node.info.NodeInfo
- All Implemented Interfaces:
- Writeable,- org.elasticsearch.core.RefCounted
Node information (static, does not change over time).
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponseTransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Constructor SummaryConstructorsConstructorDescriptionNodeInfo(StreamInput in)NodeInfo(Version version, Build build, DiscoveryNode node, Settings settings, OsInfo os, ProcessInfo process, JvmInfo jvm, ThreadPoolInfo threadPool, TransportInfo transport, HttpInfo http, PluginsAndModules plugins, IngestInfo ingest, AggregationInfo aggsInfo, ByteSizeValue totalIndexingBuffer)
- 
Method SummaryModifier and TypeMethodDescriptiongetBuild()The build version of the node.System's hostname.<T extends ReportingService.Info>
 TGet a particular info object, e.g.The settings of the node.The current ES versionvoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponsegetNodeMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, incRef, remoteAddress, remoteAddress, tryIncRef
- 
Constructor Details- 
NodeInfo- Throws:
- IOException
 
- 
NodeInfopublic NodeInfo(Version version, Build build, DiscoveryNode node, @Nullable Settings settings, @Nullable OsInfo os, @Nullable ProcessInfo process, @Nullable JvmInfo jvm, @Nullable ThreadPoolInfo threadPool, @Nullable TransportInfo transport, @Nullable HttpInfo http, @Nullable PluginsAndModules plugins, @Nullable IngestInfo ingest, @Nullable AggregationInfo aggsInfo, @Nullable ByteSizeValue totalIndexingBuffer)
 
- 
- 
Method Details- 
getHostnameSystem's hostname.nullin case of UnknownHostException
- 
getVersionThe current ES version
- 
getBuildThe build version of the node.
- 
getSettingsThe settings of the node.
- 
getInfoGet a particular info object, e.g.JvmInfoorOsInfo. This generic method handles all casting in order to spare client classes the work of explicit casts. ThisNodeInfoclass 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
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- BaseNodeResponse
- Throws:
- IOException
 
 
-