public class NodeInfo extends BaseNodeResponse
TransportResponse.Empty
headers
Constructor and Description |
---|
NodeInfo(Version version,
Build build,
DiscoveryNode node,
com.google.common.collect.ImmutableMap<String,String> serviceAttributes,
Settings settings,
OsInfo os,
ProcessInfo process,
JvmInfo jvm,
ThreadPoolInfo threadPool,
TransportInfo transport,
HttpInfo http,
PluginsAndModules plugins) |
Modifier and Type | Method and Description |
---|---|
Build |
getBuild()
The build version of the node.
|
String |
getHostname()
System's hostname.
|
HttpInfo |
getHttp() |
JvmInfo |
getJvm()
JVM level information.
|
OsInfo |
getOs()
Operating System level information.
|
PluginsAndModules |
getPlugins() |
ProcessInfo |
getProcess()
Process level information.
|
com.google.common.collect.ImmutableMap<String,String> |
getServiceAttributes()
The service attributes of the node.
|
Settings |
getSettings()
The settings of the node.
|
ThreadPoolInfo |
getThreadPool() |
TransportInfo |
getTransport() |
Version |
getVersion()
The current ES version
|
void |
readFrom(StreamInput in) |
static NodeInfo |
readNodeInfo(StreamInput in) |
void |
writeTo(StreamOutput out) |
getNode
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public NodeInfo(Version version, Build build, DiscoveryNode node, @Nullable com.google.common.collect.ImmutableMap<String,String> serviceAttributes, @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 public String getHostname()
null
in case of UnknownHostExceptionpublic Version getVersion()
public Build getBuild()
@Nullable public com.google.common.collect.ImmutableMap<String,String> getServiceAttributes()
@Nullable public ProcessInfo getProcess()
@Nullable public ThreadPoolInfo getThreadPool()
@Nullable public TransportInfo getTransport()
@Nullable public PluginsAndModules getPlugins()
public static NodeInfo readNodeInfo(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BaseNodeResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BaseNodeResponse
IOException
Copyright © 2009–2016. All rights reserved.