org.elasticsearch.http
Class HttpStats

java.lang.Object
  extended by org.elasticsearch.http.HttpStats
All Implemented Interfaces:
Streamable, ToXContent

public class HttpStats
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
HttpStats(long serverOpen, long totalOpen)
           
 
Method Summary
 long getServerOpen()
           
 long getTotalOpen()
           
 void readFrom(StreamInput in)
           
static HttpStats readHttpStats(StreamInput in)
           
 long serverOpen()
           
 long totalOpen()
           
 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

HttpStats

public HttpStats(long serverOpen,
                 long totalOpen)
Method Detail

serverOpen

public long serverOpen()

getServerOpen

public long getServerOpen()

totalOpen

public long totalOpen()

getTotalOpen

public long getTotalOpen()

readHttpStats

public static HttpStats readHttpStats(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.