public class NodeInfo extends BaseNodeResponse
TransportResponse.Emptyheaders| 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) |
getNoderemoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic 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
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BaseNodeResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BaseNodeResponseIOExceptionCopyright © 2009–2017. All rights reserved.