org.elasticsearch.index.store
Class StoreStats

java.lang.Object
  extended by org.elasticsearch.index.store.StoreStats
All Implemented Interfaces:
Streamable, ToXContent

public class StoreStats
extends Object
implements Streamable, ToXContent


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
StoreStats()
           
StoreStats(long sizeInBytes, long throttleTimeInNanos)
           
 
Method Summary
 void add(StoreStats stats)
           
 ByteSizeValue getSize()
           
 long getSizeInBytes()
           
 TimeValue getThrottleTime()
           
 void readFrom(StreamInput in)
           
static StoreStats readStoreStats(StreamInput in)
           
 ByteSizeValue size()
           
 long sizeInBytes()
           
 TimeValue throttleTime()
           
 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

StoreStats

public StoreStats()

StoreStats

public StoreStats(long sizeInBytes,
                  long throttleTimeInNanos)
Method Detail

add

public void add(StoreStats stats)

sizeInBytes

public long sizeInBytes()

getSizeInBytes

public long getSizeInBytes()

size

public ByteSizeValue size()

getSize

public ByteSizeValue getSize()

throttleTime

public TimeValue throttleTime()

getThrottleTime

public TimeValue getThrottleTime()

readStoreStats

public static StoreStats readStoreStats(StreamInput in)
                                 throws IOException
Throws:
IOException

readFrom

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

writeTo

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

toXContent

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


Copyright © 2009-2012. All Rights Reserved.