java.lang.Object
org.elasticsearch.action.admin.indices.stats.CommonStats
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class CommonStats
extends java.lang.Object
implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • add

      public void add​(CommonStats stats)
    • getDocs

      @Nullable public DocsStats getDocs()
    • getStore

      @Nullable public StoreStats getStore()
    • getIndexing

      @Nullable public IndexingStats getIndexing()
    • getGet

      @Nullable public GetStats getGet()
    • 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 org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException