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:
Streamable
,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.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description NodeInfo()
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 Build
getBuild()
The build version of the node.java.lang.String
getHostname()
System's hostname.HttpInfo
getHttp()
IngestInfo
getIngest()
JvmInfo
getJvm()
JVM level information.OsInfo
getOs()
Operating System level information.PluginsAndModules
getPlugins()
ProcessInfo
getProcess()
Process level information.Settings
getSettings()
The settings of the node.ThreadPoolInfo
getThreadPool()
ByteSizeValue
getTotalIndexingBuffer()
TransportInfo
getTransport()
Version
getVersion()
The current ES versionvoid
readFrom(StreamInput in)
Set this object's fields from a StreamInput.static NodeInfo
readNodeInfo(StreamInput in)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponse
getNode
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Constructor Detail
-
NodeInfo
public NodeInfo()
-
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 Detail
-
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.
-
getProcess
@Nullable public ProcessInfo getProcess()
Process level information.
-
getThreadPool
@Nullable public ThreadPoolInfo getThreadPool()
-
getTransport
@Nullable public TransportInfo getTransport()
-
getPlugins
@Nullable public PluginsAndModules getPlugins()
-
getIngest
@Nullable public IngestInfo getIngest()
-
getTotalIndexingBuffer
@Nullable public ByteSizeValue getTotalIndexingBuffer()
-
readNodeInfo
public static NodeInfo readNodeInfo(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classBaseNodeResponse
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBaseNodeResponse
- Throws:
java.io.IOException
-
-