Streamable
, ToXContent
, ToXContentFragment
public class TranslogStats extends java.lang.Object implements Streamable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor | Description |
---|---|
TranslogStats() |
|
TranslogStats(int numberOfOperations,
long translogSizeInBytes,
int uncommittedOperations,
long uncommittedSizeInBytes,
long earliestLastModifiedAge) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(TranslogStats translogStats) |
|
int |
estimatedNumberOfOperations() |
|
long |
getEarliestLastModifiedAge() |
|
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, wait
isFragment
public TranslogStats()
public TranslogStats(int numberOfOperations, long translogSizeInBytes, int uncommittedOperations, long uncommittedSizeInBytes, long earliestLastModifiedAge)
public void add(TranslogStats translogStats)
public long getTranslogSizeInBytes()
public int estimatedNumberOfOperations()
public long getUncommittedSizeInBytes()
public int getUncommittedOperations()
public long getEarliestLastModifiedAge()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
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