org.elasticsearch.index.merge
Class MergeStats

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

public class MergeStats
extends java.lang.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
MergeStats()
           
MergeStats(long total, long current, long totalTimeInMillis)
           
 
Method Summary
 void add(long totalMerges, long currentMerges, long totalMergeTime)
           
 void add(MergeStats mergeStats)
           
 long current()
          The current number of merges executing.
 void readFrom(StreamInput in)
           
static MergeStats readMergeStats(StreamInput in)
           
 long total()
          The total number of merges executed.
 TimeValue totalTime()
          The total time merges have been executed.
 long totalTimeInMillis()
          The total time merges have been executed (in milliseconds).
 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

MergeStats

public MergeStats()

MergeStats

public MergeStats(long total,
                  long current,
                  long totalTimeInMillis)
Method Detail

add

public void add(long totalMerges,
                long currentMerges,
                long totalMergeTime)

add

public void add(MergeStats mergeStats)

total

public long total()
The total number of merges executed.


current

public long current()
The current number of merges executing.


totalTimeInMillis

public long totalTimeInMillis()
The total time merges have been executed (in milliseconds).


totalTime

public TimeValue totalTime()
The total time merges have been executed.


readMergeStats

public static MergeStats readMergeStats(StreamInput in)
                                 throws java.io.IOException
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

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