org.elasticsearch.index.warmer
Class WarmerStats

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

public class WarmerStats
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
WarmerStats()
           
WarmerStats(long current, long total, long totalTimeInMillis)
           
 
Method Summary
 void add(long current, long total, long totalTimeInMillis)
           
 void add(WarmerStats warmerStats)
           
 long current()
           
 void readFrom(StreamInput in)
           
static WarmerStats readWarmerStats(StreamInput in)
           
 long total()
          The total number of warmer executed.
 TimeValue totalTime()
          The total time warmer have been executed.
 long totalTimeInMillis()
          The total time warmer 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

WarmerStats

public WarmerStats()

WarmerStats

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

add

public void add(long current,
                long total,
                long totalTimeInMillis)

add

public void add(WarmerStats warmerStats)

current

public long current()

total

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


totalTimeInMillis

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


totalTime

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


readWarmerStats

public static WarmerStats readWarmerStats(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.