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:
Streamable,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.
-
Method Summary
Modifier and Type Method Description booleanadaptiveSelection()NodesStatsRequestadaptiveSelection(boolean adaptiveSelection)Should adaptiveSelection statistics be returned.NodesStatsRequestall()Sets all the request flags.booleanbreaker()NodesStatsRequestbreaker(boolean breaker)Should the node's circuit breaker stats be returned.NodesStatsRequestclear()Clears all the request flags.booleandiscovery()NodesStatsRequestdiscovery(boolean discovery)Should the node's discovery stats be returned.booleanfs()Should the node file system stats be returned.NodesStatsRequestfs(boolean fs)Should the node file system stats be returned.booleanhttp()Should the node HTTP be returned.NodesStatsRequesthttp(boolean http)Should the node HTTP be returned.CommonStatsFlagsindices()NodesStatsRequestindices(boolean indices)Should indices stats be returned.NodesStatsRequestindices(CommonStatsFlags indices)booleaningest()NodesStatsRequestingest(boolean ingest)Should ingest statistics be returned.booleanjvm()Should the node JVM be returned.NodesStatsRequestjvm(boolean jvm)Should the node JVM be returned.booleanos()Should the node OS be returned.NodesStatsRequestos(boolean os)Should the node OS be returned.booleanprocess()Should the node Process be returned.NodesStatsRequestprocess(boolean process)Should the node Process be returned.voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.booleanscript()NodesStatsRequestscript(boolean script)booleanthreadPool()Should the node Thread Pool be returned.NodesStatsRequestthreadPool(boolean threadPool)Should the node Thread Pool be returned.booleantransport()Should the node Transport be returned.NodesStatsRequesttransport(boolean transport)Should the node Transport be returned.voidwriteTo(StreamOutput out)Write this object's fields to a 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.action.ActionRequest
getShouldStoreResult
-
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
-
-
-
-
Method Detail
-
all
public NodesStatsRequest all()
Sets all the request flags.
-
clear
public NodesStatsRequest clear()
Clears all the request flags.
-
indices
public CommonStatsFlags indices()
-
indices
public NodesStatsRequest indices(CommonStatsFlags indices)
-
indices
public NodesStatsRequest indices(boolean indices)
Should indices stats be returned.
-
os
public boolean os()
Should the node OS be returned.
-
os
public NodesStatsRequest os(boolean os)
Should the node OS be returned.
-
process
public boolean process()
Should the node Process be returned.
-
process
public NodesStatsRequest process(boolean process)
Should the node Process be returned.
-
jvm
public boolean jvm()
Should the node JVM be returned.
-
jvm
public NodesStatsRequest jvm(boolean jvm)
Should the node JVM be returned.
-
threadPool
public boolean threadPool()
Should the node Thread Pool be returned.
-
threadPool
public NodesStatsRequest threadPool(boolean threadPool)
Should the node Thread Pool be returned.
-
fs
public boolean fs()
Should the node file system stats be returned.
-
fs
public NodesStatsRequest fs(boolean fs)
Should the node file system stats be returned.
-
transport
public boolean transport()
Should the node Transport be returned.
-
transport
public NodesStatsRequest transport(boolean transport)
Should the node Transport be returned.
-
http
public boolean http()
Should the node HTTP be returned.
-
http
public NodesStatsRequest http(boolean http)
Should the node HTTP be returned.
-
breaker
public boolean breaker()
-
breaker
public NodesStatsRequest breaker(boolean breaker)
Should the node's circuit breaker stats be returned.
-
script
public boolean script()
-
script
public NodesStatsRequest script(boolean script)
-
discovery
public boolean discovery()
-
discovery
public NodesStatsRequest discovery(boolean discovery)
Should the node's discovery stats be returned.
-
ingest
public boolean ingest()
-
ingest
public NodesStatsRequest ingest(boolean ingest)
Should ingest statistics be returned.
-
adaptiveSelection
public boolean adaptiveSelection()
-
adaptiveSelection
public NodesStatsRequest adaptiveSelection(boolean adaptiveSelection)
Should adaptiveSelection statistics be returned.
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classBaseNodesRequest<NodesStatsRequest>- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodesRequest<NodesStatsRequest>- Throws:
java.io.IOException
-
-