Module org.elasticsearch.server
Class IndicesStatsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.action.support.broadcast.BroadcastRequest<IndicesStatsRequest>
org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,RefCounted,TaskAwareRequest,TransportRequest
A request to get indices level stats. Allow to enable different stats to be returned.
By default, all statistics are enabled.
All the stats to be returned can be cleared using clear(), at which point, specific
stats can be enabled.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.RemoteClusterShardRequest, IndicesRequest.Replaceable, IndicesRequest.SingleIndexNoWildcardsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
DEFAULT_INDICES_OPTIONS, indicesFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Sets all flags to return all stats.booleanbulk()bulk(boolean bulk) clear()Clears all stats.booleancompletion(boolean completion) String[]completionFields(String... completionDataFields) Returns the task object that should be used to keep track of the processing of the request.booleandenseVector(boolean denseVector) booleandocs()docs(boolean docs) booleanfieldData(boolean fieldData) String[]fieldDataFields(String... fieldDataFields) flags()Returns the underlying stats flags.flags(CommonStatsFlags flags) Sets the underlying stats flags.booleanflush()flush(boolean flush) booleanget()get(boolean get) String[]groups()Sets specific search group stats to retrieve the stats for.booleanincludeSegmentFileSizes(boolean includeSegmentFileSizes) includeUnloadedSegments(boolean includeUnloadedSegments) booleanindexing()indexing(boolean indexing) booleanmerge()merge(boolean merge) booleanqueryCache(boolean queryCache) booleanrecovery()recovery(boolean recovery) booleanrefresh()refresh(boolean refresh) booleanrequestCache(boolean requestCache) booleansearch()search(boolean search) booleansegments()segments(boolean segments) booleansparseVector(boolean sparseVector) booleanstore()store(boolean store) booleantranslog()translog(boolean translog) booleanwarmer()warmer(boolean warmer) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
includeDataStreams, indices, indices, indicesOptions, indicesOptions, timeout, timeout, validateMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestId, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest.Replaceable
allowsRemoteIndicesMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
IndicesStatsRequest
public IndicesStatsRequest() -
IndicesStatsRequest
- Throws:
IOException
-
-
Method Details
-
all
Sets all flags to return all stats. -
clear
Clears all stats. -
flags
Returns the underlying stats flags. -
flags
Sets the underlying stats flags. -
groups
Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled. -
groups
-
docs
-
docs
public boolean docs() -
store
-
store
public boolean store() -
indexing
-
indexing
public boolean indexing() -
get
-
get
public boolean get() -
search
-
search
public boolean search() -
merge
-
merge
public boolean merge() -
refresh
-
refresh
public boolean refresh() -
flush
-
flush
public boolean flush() -
warmer
-
warmer
public boolean warmer() -
queryCache
-
queryCache
public boolean queryCache() -
fieldData
-
fieldData
public boolean fieldData() -
segments
-
segments
public boolean segments() -
fieldDataFields
-
fieldDataFields
-
completion
-
completion
public boolean completion() -
completionFields
-
completionFields
-
translog
-
translog
public boolean translog() -
requestCache
-
requestCache
public boolean requestCache() -
recovery
-
recovery
public boolean recovery() -
bulk
-
bulk
public boolean bulk() -
includeSegmentFileSizes
public boolean includeSegmentFileSizes() -
includeSegmentFileSizes
-
includeUnloadedSegments
-
denseVector
-
denseVector
public boolean denseVector() -
sparseVector
-
sparseVector
public boolean sparseVector() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBroadcastRequest<IndicesStatsRequest>- Throws:
IOException
-
createTask
public Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) Description copied from interface:TaskAwareRequestReturns the task object that should be used to keep track of the processing of the request.
-