public class TransportStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TransportStats(long serverOpen,
long rxCount,
long rxSize,
long txCount,
long txSize) |
Modifier and Type | Method and Description |
---|---|
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) |
public TransportStats(long serverOpen, long rxCount, long rxSize, long txCount, long txSize)
public long serverOpen()
public long getServerOpen()
public long rxCount()
public long getRxCount()
public ByteSizeValue rxSize()
public ByteSizeValue getRxSize()
public long txCount()
public long getTxCount()
public ByteSizeValue txSize()
public ByteSizeValue getTxSize()
public static TransportStats readTransportStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.