Class NodesInfoRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.nodes.BaseNodesRequest<NodesInfoRequest>
org.elasticsearch.action.admin.cluster.node.info.NodesInfoRequest
- All Implemented Interfaces:
Writeable,TaskAwareRequest
public class NodesInfoRequest extends BaseNodesRequest<NodesInfoRequest>
A request to get node (cluster) level information.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors Constructor Description NodesInfoRequest(java.lang.String... nodesIds)Get information from nodes based on the nodes ids specified.NodesInfoRequest(StreamInput in) -
Method Summary
Modifier and Type Method Description NodesInfoRequestall()Sets to return all the data.NodesInfoRequestclear()Clears all info flags.booleanhttp()Should the node HTTP be returned.NodesInfoRequesthttp(boolean http)Should the node HTTP be returned.booleanindices()NodesInfoRequestindices(boolean indices)Should information about indices (currently just indexing buffers) be returnedbooleaningest()NodesInfoRequestingest(boolean ingest)Should information about ingest be returnedbooleanjvm()Should the node JVM be returned.NodesInfoRequestjvm(boolean jvm)Should the node JVM be returned.booleanos()Should the node OS be returned.NodesInfoRequestos(boolean os)Should the node OS be returned.booleanplugins()NodesInfoRequestplugins(boolean plugins)Should information about plugins be returnedbooleanprocess()Should the node Process be returned.NodesInfoRequestprocess(boolean process)Should the node Process be returned.booleansettings()Should the node settings be returned.NodesInfoRequestsettings(boolean settings)Should the node settings be returned.booleanthreadPool()Should the node Thread Pool info be returned.NodesInfoRequestthreadPool(boolean threadPool)Should the node Thread Pool info be returned.booleantransport()Should the node Transport be returned.NodesInfoRequesttransport(boolean transport)Should the node Transport be returned.voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodesRequest
concreteNodes, nodesIds, nodesIds, setConcreteNodes, timeout, timeout, timeout, validateMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
NodesInfoRequest
- Throws:
java.io.IOException
-
NodesInfoRequest
public NodesInfoRequest(java.lang.String... nodesIds)Get information from nodes based on the nodes ids specified. If none are passed, information for all nodes will be returned.
-
-
Method Details
-
clear
Clears all info flags. -
all
Sets to return all the data. -
settings
public boolean settings()Should the node settings be returned. -
settings
Should the node settings be returned. -
os
public boolean os()Should the node OS be returned. -
os
Should the node OS be returned. -
process
public boolean process()Should the node Process be returned. -
process
Should the node Process be returned. -
jvm
public boolean jvm()Should the node JVM be returned. -
jvm
Should the node JVM be returned. -
threadPool
public boolean threadPool()Should the node Thread Pool info be returned. -
threadPool
Should the node Thread Pool info be returned. -
transport
public boolean transport()Should the node Transport be returned. -
transport
Should the node Transport be returned. -
http
public boolean http()Should the node HTTP be returned. -
http
Should the node HTTP be returned. -
plugins
Should information about plugins be returned- Parameters:
plugins- true if you want info- Returns:
- The request
-
plugins
public boolean plugins()- Returns:
- true if information about plugins is requested
-
ingest
Should information about ingest be returned- Parameters:
ingest- true if you want info
-
ingest
public boolean ingest()- Returns:
- true if information about ingest is requested
-
indices
Should information about indices (currently just indexing buffers) be returned- Parameters:
indices- true if you want info
-
indices
public boolean indices()- Returns:
- true if information about indices (currently just indexing buffers)
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodesRequest<NodesInfoRequest>- Throws:
java.io.IOException
-