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
public class NodeInfo extends BaseNodeResponse
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> -
Constructor Summary
Constructors Constructor Description NodeInfo(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, ByteSizeValue totalIndexingBuffer) -
Method Summary
Modifier and Type Method Description BuildgetBuild()The build version of the node.java.lang.StringgetHostname()System's hostname.HttpInfogetHttp()IngestInfogetIngest()JvmInfogetJvm()JVM level information.OsInfogetOs()Operating System level information.PluginsAndModulesgetPlugins()ProcessInfogetProcess()Process level information.SettingsgetSettings()The settings of the node.ThreadPoolInfogetThreadPool()ByteSizeValuegetTotalIndexingBuffer()TransportInfogetTransport()VersiongetVersion()The current ES versionvoidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
NodeInfo
- Throws:
java.io.IOException
-
NodeInfo
public 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 ByteSizeValue totalIndexingBuffer)
-
-
Method Details
-
getHostname
System's hostname.nullin case of UnknownHostException -
getVersion
The current ES version -
getBuild
The build version of the node. -
getSettings
The settings of the node. -
getOs
Operating System level information. -
getProcess
Process level information. -
getJvm
JVM level information. -
getThreadPool
-
getTransport
-
getHttp
-
getPlugins
-
getIngest
-
getTotalIndexingBuffer
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodeResponse- Throws:
java.io.IOException
-