public class TranslogStats extends ToXContentToBytes implements Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TranslogStats() |
TranslogStats(int numberOfOperations,
long translogSizeInBytes,
int uncommittedOperations,
long uncommittedSizeInBytes) |
Modifier and Type | Method and Description |
---|---|
void |
add(TranslogStats translogStats) |
int |
estimatedNumberOfOperations() |
long |
getTranslogSizeInBytes() |
int |
getUncommittedOperations()
the number of operations in generations of the translog that weren't yet to comitted to lucene
|
long |
getUncommittedSizeInBytes()
the size of the generations in the translog that weren't yet to comitted to lucene
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
buildAsBytes, buildAsBytes, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public TranslogStats()
public TranslogStats(int numberOfOperations, long translogSizeInBytes, int uncommittedOperations, long uncommittedSizeInBytes)
public void add(TranslogStats translogStats)
public long getTranslogSizeInBytes()
public int estimatedNumberOfOperations()
public long getUncommittedSizeInBytes()
public int getUncommittedOperations()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException