org.elasticsearch.action.admin.cluster.node.info
Class NodeInfo

java.lang.Object
  extended by org.elasticsearch.action.support.nodes.NodeOperationResponse
      extended by org.elasticsearch.action.admin.cluster.node.info.NodeInfo
All Implemented Interfaces:
Streamable

public class NodeInfo
extends NodeOperationResponse

Node information (static, does not change over time).


Constructor Summary
NodeInfo(String hostname, 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)
           
 
Method Summary
 String getHostname()
          System's hostname.
 HttpInfo getHttp()
           
 JvmInfo getJvm()
          JVM level information.
 NetworkInfo getNetwork()
          Network level information.
 OsInfo getOs()
          Operating System level information.
 ProcessInfo getProcess()
          Process level information.
 com.google.common.collect.ImmutableMap<String,String> getServiceAttributes()
          The attributes of the node.
 Settings getSettings()
          The settings of the node.
 ThreadPoolInfo getThreadPool()
           
 TransportInfo getTransport()
           
 String hostname()
          System's hostname.
 HttpInfo http()
           
 JvmInfo jvm()
          JVM level information.
 NetworkInfo network()
          Network level information.
 OsInfo os()
          Operating System level information.
 ProcessInfo process()
          Process level information.
 void readFrom(StreamInput in)
           
static NodeInfo readNodeInfo(StreamInput in)
           
 com.google.common.collect.ImmutableMap<String,String> serviceAttributes()
          The service attributes of the node.
 Settings settings()
          The settings of the node.
 ThreadPoolInfo threadPool()
           
 TransportInfo transport()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.nodes.NodeOperationResponse
getNode, node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInfo

public NodeInfo(@Nullable
                String hostname,
                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)
Method Detail

hostname

@Nullable
public String hostname()
System's hostname. null in case of UnknownHostException


getHostname

@Nullable
public String getHostname()
System's hostname. null in case of UnknownHostException


serviceAttributes

@Nullable
public com.google.common.collect.ImmutableMap<String,String> serviceAttributes()
The service attributes of the node.


getServiceAttributes

@Nullable
public com.google.common.collect.ImmutableMap<String,String> getServiceAttributes()
The attributes of the node.


settings

@Nullable
public Settings settings()
The settings of the node.


getSettings

@Nullable
public Settings getSettings()
The settings of the node.


os

@Nullable
public OsInfo os()
Operating System level information.


getOs

@Nullable
public OsInfo getOs()
Operating System level information.


process

@Nullable
public ProcessInfo process()
Process level information.


getProcess

@Nullable
public ProcessInfo getProcess()
Process level information.


jvm

@Nullable
public JvmInfo jvm()
JVM level information.


getJvm

@Nullable
public JvmInfo getJvm()
JVM level information.


threadPool

@Nullable
public ThreadPoolInfo threadPool()

getThreadPool

@Nullable
public ThreadPoolInfo getThreadPool()

network

@Nullable
public NetworkInfo network()
Network level information.


getNetwork

@Nullable
public NetworkInfo getNetwork()
Network level information.


transport

@Nullable
public TransportInfo transport()

getTransport

@Nullable
public TransportInfo getTransport()

http

@Nullable
public HttpInfo http()

getHttp

@Nullable
public HttpInfo getHttp()

readNodeInfo

public static NodeInfo readNodeInfo(StreamInput in)
                             throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class NodeOperationResponse
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class NodeOperationResponse
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.