Module org.elasticsearch.server
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,RefCounted
Node information (static, does not change over time).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionNodeInfo(String version, CompatibilityVersions compatibilityVersions, IndexVersion indexVersion, Map<String, Integer> componentVersions, Build build, DiscoveryNode node, Settings settings, OsInfo os, ProcessInfo process, JvmInfo jvm, ThreadPoolInfo threadPool, TransportInfo transport, HttpInfo http, RemoteClusterServerInfo remoteClusterServer, PluginsAndModules plugins, IngestInfo ingest, AggregationInfo aggsInfo, ByteSizeValue totalIndexingBuffer) NodeInfo(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptiongetBuild()The build version of the node.A map of system index names to versions for their mappings supported by this node.The version numbers of other installed componentsSystem's hostname.The most recent index version that can be used by this node<T extends ReportingService.Info>
TGet a particular info object, e.g.The settings of the node.The most recent transport version that can be used by this nodeThe current ES versionvoidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponse
getNodeMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
NodeInfo
- Throws:
IOException
-
NodeInfo
public NodeInfo(String version, CompatibilityVersions compatibilityVersions, IndexVersion indexVersion, Map<String, Integer> componentVersions, 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 RemoteClusterServerInfo remoteClusterServer, @Nullable PluginsAndModules plugins, @Nullable IngestInfo ingest, @Nullable AggregationInfo aggsInfo, @Nullable ByteSizeValue totalIndexingBuffer)
-
-
Method Details
-
getHostname
System's hostname.nullin case of UnknownHostException -
getVersion
The current ES version -
getTransportVersion
The most recent transport version that can be used by this node -
getIndexVersion
The most recent index version that can be used by this node -
getComponentVersions
The version numbers of other installed components -
getCompatibilityVersions
A map of system index names to versions for their mappings supported by this node. -
getBuild
The build version of the node. -
getSettings
The settings of the node. -
getInfo
Get 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
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodeResponse- Throws:
IOException
-