public class TranslogStats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic 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 ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOException