public class TranslogStats extends ToXContentToBytes implements Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TranslogStats() |
TranslogStats(int numberOfOperations,
long translogSizeInBytes) |
Modifier and Type | Method and Description |
---|---|
void |
add(TranslogStats translogStats) |
long |
estimatedNumberOfOperations() |
long |
getTranslogSizeInBytes() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
buildAsBytes, buildAsBytes, toString
public TranslogStats()
public TranslogStats(int numberOfOperations, long translogSizeInBytes)
public void add(TranslogStats translogStats)
public long getTranslogSizeInBytes()
public long estimatedNumberOfOperations()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
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
Copyright © 2009–2017. All rights reserved.