public class NodeInfo extends NodeOperationResponse
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,
NetworkInfo network,
TransportInfo transport,
HttpInfo http,
PluginsInfo 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.
|
NetworkInfo |
getNetwork()
Network level information.
|
OsInfo |
getOs()
Operating System level information.
|
PluginsInfo |
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) |
getNodeputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, 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 NetworkInfo network, @Nullable TransportInfo transport, @Nullable HttpInfo http, @Nullable PluginsInfo 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 NetworkInfo getNetwork()
@Nullable public TransportInfo getTransport()
@Nullable public PluginsInfo getPlugins()
public static NodeInfo readNodeInfo(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class NodeOperationResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class NodeOperationResponseIOExceptionCopyright © 2009–2016. All rights reserved.