public class NodeInfo extends NodeOperationResponse
TransportResponse.Empty
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) |
getNode
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, 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 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
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class NodeOperationResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class NodeOperationResponse
IOException
Copyright © 2009–2015. All rights reserved.