Class NodesStatsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.nodes.BaseNodesRequest<NodesStatsRequest>
org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequest
- All Implemented Interfaces:
Writeable
,TaskAwareRequest
public class NodesStatsRequest extends BaseNodesRequest<NodesStatsRequest>
A request to get node (cluster) level stats.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
Constructors Constructor Description NodesStatsRequest()
NodesStatsRequest(java.lang.String... nodesIds)
Get stats from nodes based on the nodes ids specified.NodesStatsRequest(StreamInput in)
-
Method Summary
Modifier and Type Method Description boolean
adaptiveSelection()
NodesStatsRequest
adaptiveSelection(boolean adaptiveSelection)
Should adaptiveSelection statistics be returned.NodesStatsRequest
all()
Sets all the request flags.boolean
breaker()
NodesStatsRequest
breaker(boolean breaker)
Should the node's circuit breaker stats be returned.NodesStatsRequest
clear()
Clears all the request flags.boolean
discovery()
NodesStatsRequest
discovery(boolean discovery)
Should the node's discovery stats be returned.boolean
fs()
Should the node file system stats be returned.NodesStatsRequest
fs(boolean fs)
Should the node file system stats be returned.boolean
http()
Should the node HTTP be returned.NodesStatsRequest
http(boolean http)
Should the node HTTP be returned.CommonStatsFlags
indices()
NodesStatsRequest
indices(boolean indices)
Should indices stats be returned.NodesStatsRequest
indices(CommonStatsFlags indices)
boolean
ingest()
NodesStatsRequest
ingest(boolean ingest)
Should ingest statistics be returned.boolean
jvm()
Should the node JVM be returned.NodesStatsRequest
jvm(boolean jvm)
Should the node JVM be returned.boolean
os()
Should the node OS be returned.NodesStatsRequest
os(boolean os)
Should the node OS be returned.boolean
process()
Should the node Process be returned.NodesStatsRequest
process(boolean process)
Should the node Process be returned.boolean
script()
NodesStatsRequest
script(boolean script)
boolean
threadPool()
Should the node Thread Pool be returned.NodesStatsRequest
threadPool(boolean threadPool)
Should the node Thread Pool be returned.boolean
transport()
Should the node Transport be returned.NodesStatsRequest
transport(boolean transport)
Should the node Transport be returned.void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodesRequest
concreteNodes, nodesIds, nodesIds, setConcreteNodes, timeout, timeout, timeout, validate
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
NodesStatsRequest
public NodesStatsRequest() -
NodesStatsRequest
- Throws:
java.io.IOException
-
NodesStatsRequest
public NodesStatsRequest(java.lang.String... nodesIds)Get stats from nodes based on the nodes ids specified. If none are passed, stats for all nodes will be returned.
-
-
Method Details
-
all
Sets all the request flags. -
clear
Clears all the request flags. -
indices
-
indices
-
indices
Should indices stats 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 be returned. -
threadPool
Should the node Thread Pool be returned. -
fs
public boolean fs()Should the node file system stats be returned. -
fs
Should the node file system stats 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. -
breaker
public boolean breaker() -
breaker
Should the node's circuit breaker stats be returned. -
script
public boolean script() -
script
-
discovery
public boolean discovery() -
discovery
Should the node's discovery stats be returned. -
ingest
public boolean ingest() -
ingest
Should ingest statistics be returned. -
adaptiveSelection
public boolean adaptiveSelection() -
adaptiveSelection
Should adaptiveSelection statistics be returned. -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBaseNodesRequest<NodesStatsRequest>
- Throws:
java.io.IOException
-