org.elasticsearch.transport
Class TransportStats
java.lang.Object
org.elasticsearch.transport.TransportStats
- All Implemented Interfaces:
- Streamable, ToXContent
public class TransportStats
- extends java.lang.Object
- implements Streamable, ToXContent
Constructor Summary |
TransportStats(long serverOpen,
long rxCount,
long rxSize,
long txCount,
long txSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportStats
public TransportStats(long serverOpen,
long rxCount,
long rxSize,
long txCount,
long txSize)
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 java.io.IOException
- 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
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
java.io.IOException