Class FlashJournalRM.WriterStatistics

java.lang.Object
com.tangosol.io.journal.FlashJournalRM.WriterStatistics
Enclosing class:
FlashJournalRM

protected static class FlashJournalRM.WriterStatistics extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    protected long
    The number of bytes reported written by physical write calls.
    protected long
    The number of physical write errors.
    protected long
    The number of physical force errors.
    protected long
    The number of physical force invocations.
    protected long
    The cumulative nanoseconds spent in physical force calls.
    protected long
    The maximum nanoseconds spent in a physical force call.
    protected long
    The maximum nanoseconds spent in a physical write call.
    protected long
    The cumulative nanoseconds spent in physical write calls.
    protected long
    The number of write or force errors.
    protected long
    The number of physical write invocations.
    protected long
    The number of write recovery attempts.
    protected long
    Volatile publication marker for management readers.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
    Return the publication marker.
    protected void
    Publish all preceding counter updates to management readers.
    protected void
    recordForce(long cNanos, boolean fError)
    Record a physical force invocation.
    protected void
    recordWrite(long cb, long cNanos, boolean fError)
    Record a physical write invocation.
    protected void
    Record a write recovery attempt.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_cWriteOperations

      protected long m_cWriteOperations
      The number of physical write invocations.
    • m_cbWrites

      protected long m_cbWrites
      The number of bytes reported written by physical write calls.
    • m_cNanosWrites

      protected long m_cNanosWrites
      The cumulative nanoseconds spent in physical write calls.
    • m_cNanosMaximumWrite

      protected long m_cNanosMaximumWrite
      The maximum nanoseconds spent in a physical write call.
    • m_cForces

      protected long m_cForces
      The number of physical force invocations.
    • m_cNanosForces

      protected long m_cNanosForces
      The cumulative nanoseconds spent in physical force calls.
    • m_cNanosMaximumForce

      protected long m_cNanosMaximumForce
      The maximum nanoseconds spent in a physical force call.
    • m_cWriteErrors

      protected long m_cWriteErrors
      The number of write or force errors.
    • m_cFileWriteErrors

      protected long m_cFileWriteErrors
      The number of physical write errors.
    • m_cForceErrors

      protected long m_cForceErrors
      The number of physical force errors.
    • m_cWriteRetries

      protected long m_cWriteRetries
      The number of write recovery attempts.
    • m_lPublication

      protected volatile long m_lPublication
      Volatile 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 written
      cNanos - the elapsed time
      fError - 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 time
      fError - 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