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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionall()
Sets all flags to return all stats.clear()
Clears all stats.boolean
completion(boolean completion)
String[]
completionFields(String... completionDataFields)
Returns the task object that should be used to keep track of the processing of the request.boolean
docs()
docs(boolean docs)
boolean
fieldData(boolean fieldData)
String[]
fieldDataFields(String... fieldDataFields)
flags()
Returns the underlying stats flags.flags(CommonStatsFlags flags)
Sets the underlying stats flags.boolean
flush()
flush(boolean flush)
boolean
get()
get(boolean get)
String[]
groups()
Sets specific search group stats to retrieve the stats for.boolean
Determines whether the request should be applied to data streams.boolean
includeSegmentFileSizes(boolean includeSegmentFileSizes)
includeUnloadedSegments(boolean includeUnloadedSegments)
boolean
indexing()
indexing(boolean indexing)
boolean
merge()
merge(boolean merge)
boolean
queryCache(boolean queryCache)
boolean
recovery()
recovery(boolean recovery)
boolean
refresh()
refresh(boolean refresh)
boolean
requestCache(boolean requestCache)
boolean
search()
search(boolean search)
boolean
segments()
segments(boolean segments)
boolean
store()
store(boolean store)
boolean
translog()
translog(boolean translog)
String[]
types()
Document types to return stats for.Document types to return stats for.boolean
warmer()
warmer(boolean warmer)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices, indices, indicesOptions, indicesOptions, timeout, timeout, validate
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices
Methods 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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastRequest<IndicesStatsRequest>
- Throws:
IOException
-
includeDataStreams
public boolean includeDataStreams()Description copied from interface:IndicesRequest
Determines 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:
includeDataStreams
in interfaceIndicesRequest
- Overrides:
includeDataStreams
in classBroadcastRequest<IndicesStatsRequest>
-
createTask
public Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String,String> headers)Description copied from interface:TaskAwareRequest
Returns the task object that should be used to keep track of the processing of the request.
-