org.elasticsearch.index.flush
Class FlushStats
java.lang.Object
org.elasticsearch.index.flush.FlushStats
- All Implemented Interfaces:
- Streamable, ToXContent
public class FlushStats
- extends Object
- implements Streamable, ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlushStats
public FlushStats()
FlushStats
public FlushStats(long total,
long totalTimeInMillis)
add
public void add(long total,
long totalTimeInMillis)
add
public void add(FlushStats flushStats)
total
public long total()
- The total number of flush executed.
totalTimeInMillis
public long totalTimeInMillis()
- The total time merges have been executed (in milliseconds).
totalTime
public TimeValue totalTime()
- The total time merges have been executed.
readFlushStats
public static FlushStats readFlushStats(StreamInput in)
throws IOException
- Throws:
IOException
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- 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
Copyright © 2009-2012. All Rights Reserved.