Class CommonStats
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.stats.CommonStats
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class CommonStats extends java.lang.Object implements Writeable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description CommonStats()CommonStats(CommonStatsFlags flags)CommonStats(StreamInput in)CommonStats(IndicesQueryCache indicesQueryCache, IndexShard indexShard, CommonStatsFlags flags)
-
Method Summary
Modifier and Type Method Description voidadd(CommonStats stats)CompletionStatsgetCompletion()DocsStatsgetDocs()FieldDataStatsgetFieldData()FlushStatsgetFlush()GetStatsgetGet()IndexingStatsgetIndexing()MergeStatsgetMerge()QueryCacheStatsgetQueryCache()RecoveryStatsgetRecoveryStats()RefreshStatsgetRefresh()RequestCacheStatsgetRequestCache()SearchStatsgetSearch()SegmentsStatsgetSegments()StoreStatsgetStore()ByteSizeValuegetTotalMemory()Utility method which computes total memory by adding FieldData, PercolatorCache, Segments (memory, index writer, version map)TranslogStatsgetTranslog()WarmerStatsgetWarmer()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
store
@Nullable public StoreStats store
-
indexing
@Nullable public IndexingStats indexing
-
search
@Nullable public SearchStats search
-
merge
@Nullable public MergeStats merge
-
refresh
@Nullable public RefreshStats refresh
-
flush
@Nullable public FlushStats flush
-
warmer
@Nullable public WarmerStats warmer
-
queryCache
@Nullable public QueryCacheStats queryCache
-
fieldData
@Nullable public FieldDataStats fieldData
-
completion
@Nullable public CompletionStats completion
-
segments
@Nullable public SegmentsStats segments
-
translog
@Nullable public TranslogStats translog
-
requestCache
@Nullable public RequestCacheStats requestCache
-
recoveryStats
@Nullable public RecoveryStats recoveryStats
-
-
Constructor Detail
-
CommonStats
public CommonStats()
-
CommonStats
public CommonStats(CommonStatsFlags flags)
-
CommonStats
public CommonStats(IndicesQueryCache indicesQueryCache, IndexShard indexShard, CommonStatsFlags flags)
-
CommonStats
public CommonStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
add
public void add(CommonStats stats)
-
getStore
@Nullable public StoreStats getStore()
-
getIndexing
@Nullable public IndexingStats getIndexing()
-
getSearch
@Nullable public SearchStats getSearch()
-
getMerge
@Nullable public MergeStats getMerge()
-
getRefresh
@Nullable public RefreshStats getRefresh()
-
getFlush
@Nullable public FlushStats getFlush()
-
getWarmer
@Nullable public WarmerStats getWarmer()
-
getQueryCache
@Nullable public QueryCacheStats getQueryCache()
-
getFieldData
@Nullable public FieldDataStats getFieldData()
-
getCompletion
@Nullable public CompletionStats getCompletion()
-
getSegments
@Nullable public SegmentsStats getSegments()
-
getTranslog
@Nullable public TranslogStats getTranslog()
-
getRequestCache
@Nullable public RequestCacheStats getRequestCache()
-
getRecoveryStats
@Nullable public RecoveryStats getRecoveryStats()
-
getTotalMemory
public ByteSizeValue getTotalMemory()
Utility method which computes total memory by adding FieldData, PercolatorCache, Segments (memory, index writer, version map)
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
-