java.lang.Object
org.elasticsearch.index.translog.TranslogStats
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentFragment
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionTranslogStats(int numberOfOperations, long translogSizeInBytes, int uncommittedOperations, long uncommittedSizeInBytes, long earliestLastModifiedAge) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(TranslogStats translogStats) intlonglongintthe number of operations in generations of the translog that weren't yet to committed to lucenelongthe size of the generations in the translog that weren't yet to committed to lucenetoString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
TranslogStatspublic TranslogStats()
- 
TranslogStats- Throws:
- IOException
 
- 
TranslogStatspublic TranslogStats(int numberOfOperations, long translogSizeInBytes, int uncommittedOperations, long uncommittedSizeInBytes, long earliestLastModifiedAge) 
 
- 
- 
Method Details- 
add
- 
getTranslogSizeInBytespublic long getTranslogSizeInBytes()
- 
estimatedNumberOfOperationspublic int estimatedNumberOfOperations()
- 
getUncommittedSizeInBytespublic long getUncommittedSizeInBytes()the size of the generations in the translog that weren't yet to committed to lucene
- 
getUncommittedOperationspublic int getUncommittedOperations()the number of operations in generations of the translog that weren't yet to committed to lucene
- 
getEarliestLastModifiedAgepublic long getEarliestLastModifiedAge()
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
toString
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
 
-