Class FlashJournalRM.WriterStatistics
java.lang.Object
com.tangosol.io.journal.FlashJournalRM.WriterStatistics
- Enclosing class:
FlashJournalRM
Cumulative statistics for the FlashJournal writer. All updates are made
by the writer daemon. Resetting statistics atomically replaces the
current instance instead of mutating fields concurrently with the
writer. Completed updates are published to management readers without
making every counter volatile.
- Since:
- Coherence 3.7
- Author:
- cp/cf 2010-06-10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longThe number of bytes reported written by physical write calls.protected longThe number of physical write errors.protected longThe number of physical force errors.protected longThe number of physical force invocations.protected longThe cumulative nanoseconds spent in physical force calls.protected longThe maximum nanoseconds spent in a physical force call.protected longThe maximum nanoseconds spent in a physical write call.protected longThe cumulative nanoseconds spent in physical write calls.protected longThe number of write or force errors.protected longThe number of physical write invocations.protected longThe number of write recovery attempts.protected longVolatile publication marker for management readers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longReturn the publication marker.protected voidpublish()Publish all preceding counter updates to management readers.protected voidrecordForce(long cNanos, boolean fError) Record a physical force invocation.protected voidrecordWrite(long cb, long cNanos, boolean fError) Record a physical write invocation.protected voidRecord a write recovery attempt.
-
Field Details
-
m_cWriteOperations
protected long m_cWriteOperationsThe number of physical write invocations. -
m_cbWrites
protected long m_cbWritesThe number of bytes reported written by physical write calls. -
m_cNanosWrites
protected long m_cNanosWritesThe cumulative nanoseconds spent in physical write calls. -
m_cNanosMaximumWrite
protected long m_cNanosMaximumWriteThe maximum nanoseconds spent in a physical write call. -
m_cForces
protected long m_cForcesThe number of physical force invocations. -
m_cNanosForces
protected long m_cNanosForcesThe cumulative nanoseconds spent in physical force calls. -
m_cNanosMaximumForce
protected long m_cNanosMaximumForceThe maximum nanoseconds spent in a physical force call. -
m_cWriteErrors
protected long m_cWriteErrorsThe number of write or force errors. -
m_cFileWriteErrors
protected long m_cFileWriteErrorsThe number of physical write errors. -
m_cForceErrors
protected long m_cForceErrorsThe number of physical force errors. -
m_cWriteRetries
protected long m_cWriteRetriesThe number of write recovery attempts. -
m_lPublication
protected volatile long m_lPublicationVolatile publication marker for management readers.
-
-
Constructor Details
-
WriterStatistics
protected WriterStatistics()
-
-
Method Details
-
recordWrite
protected void recordWrite(long cb, long cNanos, boolean fError) Record a physical write invocation.- Parameters:
cb- the number of bytes reported writtencNanos- the elapsed timefError- whether the invocation threw an IOException- Since:
- 26.1.0.0
-
recordForce
protected void recordForce(long cNanos, boolean fError) Record a physical force invocation.- Parameters:
cNanos- the elapsed timefError- whether the invocation threw an IOException- Since:
- 26.1.0.0
-
recordWriteRetry
protected void recordWriteRetry()Record a write recovery attempt.- Since:
- 26.1.0.0
-
publish
protected void publish()Publish all preceding counter updates to management readers.- Since:
- 26.1.0.0
-
getPublication
protected long getPublication()Return the publication marker. Reading this volatile value makes preceding writer updates visible to the calling thread.- Returns:
- the current publication marker
- Since:
- 26.1.0.0
-