public class TranslogStats extends ToXContentToBytes implements Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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, toStringpublic 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 ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.