Class IndicesStatsRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.BroadcastRequest<IndicesStatsRequest>
org.elasticsearch.action.admin.indices.stats.IndicesStatsRequest
- All Implemented Interfaces:
 IndicesRequest,IndicesRequest.Replaceable,Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
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 class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested 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
indices - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionall()Sets all flags to return all stats.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.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.booleanDetermines whether the request should be applied to data streams.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)booleanstore()store(boolean store)booleantranslog()translog(boolean translog)String[]types()Document types to return stats for.Document types to return stats for.booleanwarmer()warmer(boolean warmer)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices, indices, indicesOptions, indicesOptions, timeout, timeout, validateMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndicesMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
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. - 
types
Document types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types. - 
types
Document types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types. - 
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() - 
includeSegmentFileSizes
public boolean includeSegmentFileSizes() - 
includeSegmentFileSizes
 - 
includeUnloadedSegments
 - 
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
 writeToin interfaceWriteable- Overrides:
 writeToin classBroadcastRequest<IndicesStatsRequest>- Throws:
 IOException
 - 
includeDataStreams
public boolean includeDataStreams()Description copied from interface:IndicesRequestDetermines whether the request should be applied to data streams. Whenfalse, none of the names or wildcard expressions inIndicesRequest.indices()should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.- Specified by:
 includeDataStreamsin interfaceIndicesRequest- Overrides:
 includeDataStreamsin classBroadcastRequest<IndicesStatsRequest>
 - 
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. 
 -