org.elasticsearch.transport
Class TransportStats

java.lang.Object
  extended by org.elasticsearch.transport.TransportStats
All Implemented Interfaces:
Streamable, ToXContent

public class TransportStats
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
TransportStats(long serverOpen, long rxCount, long rxSize, long txCount, long txSize)
           
 
Method Summary
 long getRxCount()
           
 ByteSizeValue getRxSize()
           
 long getServerOpen()
           
 long getTxCount()
           
 ByteSizeValue getTxSize()
           
 void readFrom(StreamInput in)
           
static TransportStats readTransportStats(StreamInput in)
           
 long rxCount()
           
 ByteSizeValue rxSize()
           
 long serverOpen()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 long txCount()
           
 ByteSizeValue txSize()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportStats

public TransportStats(long serverOpen,
                      long rxCount,
                      long rxSize,
                      long txCount,
                      long txSize)
Method Detail

serverOpen

public long serverOpen()

getServerOpen

public long getServerOpen()

rxCount

public long rxCount()

getRxCount

public long getRxCount()

rxSize

public ByteSizeValue rxSize()

getRxSize

public ByteSizeValue getRxSize()

txCount

public long txCount()

getTxCount

public long getTxCount()

txSize

public ByteSizeValue txSize()

getTxSize

public ByteSizeValue getTxSize()

readTransportStats

public static TransportStats readTransportStats(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.