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,Streamable,Writeable,TaskAwareRequest
public class IndicesStatsRequest extends BroadcastRequest<IndicesStatsRequest>
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
Constructors Constructor Description IndicesStatsRequest()
-
Method Summary
Modifier and Type Method Description IndicesStatsRequestall()Sets all flags to return all stats.IndicesStatsRequestclear()Clears all stats.booleancompletion()IndicesStatsRequestcompletion(boolean completion)java.lang.String[]completionFields()IndicesStatsRequestcompletionFields(java.lang.String... completionDataFields)booleandocs()IndicesStatsRequestdocs(boolean docs)booleanfieldData()IndicesStatsRequestfieldData(boolean fieldData)java.lang.String[]fieldDataFields()IndicesStatsRequestfieldDataFields(java.lang.String... fieldDataFields)CommonStatsFlagsflags()Returns the underlying stats flags.IndicesStatsRequestflags(CommonStatsFlags flags)Sets the underlying stats flags.booleanflush()IndicesStatsRequestflush(boolean flush)booleanget()IndicesStatsRequestget(boolean get)java.lang.String[]groups()IndicesStatsRequestgroups(java.lang.String... groups)Sets specific search group stats to retrieve the stats for.booleanincludeSegmentFileSizes()IndicesStatsRequestincludeSegmentFileSizes(boolean includeSegmentFileSizes)IndicesStatsRequestincludeUnloadedSegments(boolean includeUnloadedSegments)booleanindexing()IndicesStatsRequestindexing(boolean indexing)booleanmerge()IndicesStatsRequestmerge(boolean merge)booleanqueryCache()IndicesStatsRequestqueryCache(boolean queryCache)voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.booleanrecovery()IndicesStatsRequestrecovery(boolean recovery)booleanrefresh()IndicesStatsRequestrefresh(boolean refresh)booleanrequestCache()IndicesStatsRequestrequestCache(boolean requestCache)booleansearch()IndicesStatsRequestsearch(boolean search)booleansegments()IndicesStatsRequestsegments(boolean segments)booleanstore()IndicesStatsRequeststore(boolean store)booleantranslog()IndicesStatsRequesttranslog(boolean translog)java.lang.String[]types()Document types to return stats for.IndicesStatsRequesttypes(java.lang.String... types)Document types to return stats for.booleanwarmer()IndicesStatsRequestwarmer(boolean warmer)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastRequest
indices, indices, indicesOptions, indicesOptions, 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 IndicesStatsRequest all()
Sets all flags to return all stats.
-
clear
public IndicesStatsRequest clear()
Clears all stats.
-
flags
public CommonStatsFlags flags()
Returns the underlying stats flags.
-
flags
public IndicesStatsRequest flags(CommonStatsFlags flags)
Sets the underlying stats flags.
-
types
public IndicesStatsRequest types(java.lang.String... types)
Document types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types.
-
types
public java.lang.String[] types()
Document types to return stats for. Mainly affectsindexing(boolean)when enabled, returning specific indexing stats for those types.
-
groups
public IndicesStatsRequest groups(java.lang.String... groups)
Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled.
-
groups
public java.lang.String[] groups()
-
docs
public IndicesStatsRequest docs(boolean docs)
-
docs
public boolean docs()
-
store
public IndicesStatsRequest store(boolean store)
-
store
public boolean store()
-
indexing
public IndicesStatsRequest indexing(boolean indexing)
-
indexing
public boolean indexing()
-
get
public IndicesStatsRequest get(boolean get)
-
get
public boolean get()
-
search
public IndicesStatsRequest search(boolean search)
-
search
public boolean search()
-
merge
public IndicesStatsRequest merge(boolean merge)
-
merge
public boolean merge()
-
refresh
public IndicesStatsRequest refresh(boolean refresh)
-
refresh
public boolean refresh()
-
flush
public IndicesStatsRequest flush(boolean flush)
-
flush
public boolean flush()
-
warmer
public IndicesStatsRequest warmer(boolean warmer)
-
warmer
public boolean warmer()
-
queryCache
public IndicesStatsRequest queryCache(boolean queryCache)
-
queryCache
public boolean queryCache()
-
fieldData
public IndicesStatsRequest fieldData(boolean fieldData)
-
fieldData
public boolean fieldData()
-
segments
public IndicesStatsRequest segments(boolean segments)
-
segments
public boolean segments()
-
fieldDataFields
public IndicesStatsRequest fieldDataFields(java.lang.String... fieldDataFields)
-
fieldDataFields
public java.lang.String[] fieldDataFields()
-
completion
public IndicesStatsRequest completion(boolean completion)
-
completion
public boolean completion()
-
completionFields
public IndicesStatsRequest completionFields(java.lang.String... completionDataFields)
-
completionFields
public java.lang.String[] completionFields()
-
translog
public IndicesStatsRequest translog(boolean translog)
-
translog
public boolean translog()
-
requestCache
public IndicesStatsRequest requestCache(boolean requestCache)
-
requestCache
public boolean requestCache()
-
recovery
public IndicesStatsRequest recovery(boolean recovery)
-
recovery
public boolean recovery()
-
includeSegmentFileSizes
public boolean includeSegmentFileSizes()
-
includeSegmentFileSizes
public IndicesStatsRequest includeSegmentFileSizes(boolean includeSegmentFileSizes)
-
includeUnloadedSegments
public IndicesStatsRequest includeUnloadedSegments(boolean includeUnloadedSegments)
-
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 classBroadcastRequest<IndicesStatsRequest>- Throws:
java.io.IOException
-
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 classBroadcastRequest<IndicesStatsRequest>- Throws:
java.io.IOException
-
-