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 IndicesStatsRequest
all()
Sets all flags to return all stats.IndicesStatsRequest
clear()
Clears all stats.boolean
completion()
IndicesStatsRequest
completion(boolean completion)
java.lang.String[]
completionFields()
IndicesStatsRequest
completionFields(java.lang.String... completionDataFields)
boolean
docs()
IndicesStatsRequest
docs(boolean docs)
boolean
fieldData()
IndicesStatsRequest
fieldData(boolean fieldData)
java.lang.String[]
fieldDataFields()
IndicesStatsRequest
fieldDataFields(java.lang.String... fieldDataFields)
boolean
flush()
IndicesStatsRequest
flush(boolean flush)
boolean
get()
IndicesStatsRequest
get(boolean get)
java.lang.String[]
groups()
IndicesStatsRequest
groups(java.lang.String... groups)
Sets specific search group stats to retrieve the stats for.boolean
includeSegmentFileSizes()
IndicesStatsRequest
includeSegmentFileSizes(boolean includeSegmentFileSizes)
boolean
indexing()
IndicesStatsRequest
indexing(boolean indexing)
boolean
merge()
IndicesStatsRequest
merge(boolean merge)
boolean
queryCache()
IndicesStatsRequest
queryCache(boolean queryCache)
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.boolean
recovery()
IndicesStatsRequest
recovery(boolean recovery)
boolean
refresh()
IndicesStatsRequest
refresh(boolean refresh)
boolean
requestCache()
IndicesStatsRequest
requestCache(boolean requestCache)
boolean
search()
IndicesStatsRequest
search(boolean search)
boolean
segments()
IndicesStatsRequest
segments(boolean segments)
boolean
store()
IndicesStatsRequest
store(boolean store)
boolean
suggest()
IndicesStatsRequest
suggest(boolean suggest)
boolean
translog()
IndicesStatsRequest
translog(boolean translog)
java.lang.String[]
types()
Document types to return stats for.IndicesStatsRequest
types(java.lang.String... types)
Document types to return stats for.boolean
warmer()
IndicesStatsRequest
warmer(boolean warmer)
void
writeTo(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.
-
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()
-
suggest
public IndicesStatsRequest suggest(boolean suggest)
-
suggest
public boolean suggest()
-
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)
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastRequest<IndicesStatsRequest>
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classBroadcastRequest<IndicesStatsRequest>
- Throws:
java.io.IOException
-
-