org.elasticsearch.indices
Class NodeIndicesStats

java.lang.Object
  extended by org.elasticsearch.indices.NodeIndicesStats
All Implemented Interfaces:
java.io.Serializable, Streamable, ToXContent

public class NodeIndicesStats
extends java.lang.Object
implements Streamable, java.io.Serializable, ToXContent

Global information on indices stats running on a specific node.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
NodeIndicesStats(ByteSizeValue storeSize, long numDocs, CacheStats cacheStats, MergeStats mergeStats)
           
 
Method Summary
 CacheStats cache()
           
 CacheStats getCache()
           
 MergeStats getMerge()
           
 long getNumDocs()
          The number of docs on the node (an aggregation of the number of docs of all the shards allocated on the node).
 ByteSizeValue getStoreSize()
          The size of the index storage taken on the node.
 MergeStats merge()
           
 long numDocs()
          The number of docs on the node (an aggregation of the number of docs of all the shards allocated on the node).
 void readFrom(StreamInput in)
           
static NodeIndicesStats readIndicesStats(StreamInput in)
           
 ByteSizeValue storeSize()
          The size of the index storage taken on the node.
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIndicesStats

public NodeIndicesStats(ByteSizeValue storeSize,
                        long numDocs,
                        CacheStats cacheStats,
                        MergeStats mergeStats)
Method Detail

storeSize

public ByteSizeValue storeSize()
The size of the index storage taken on the node.


getStoreSize

public ByteSizeValue getStoreSize()
The size of the index storage taken on the node.


numDocs

public long numDocs()
The number of docs on the node (an aggregation of the number of docs of all the shards allocated on the node).


getNumDocs

public long getNumDocs()
The number of docs on the node (an aggregation of the number of docs of all the shards allocated on the node).


cache

public CacheStats cache()

getCache

public CacheStats getCache()

merge

public MergeStats merge()

getMerge

public MergeStats getMerge()

readIndicesStats

public static NodeIndicesStats readIndicesStats(StreamInput in)
                                         throws java.io.IOException
Throws:
java.io.IOException

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Throws:
java.io.IOException