Class DatabaseStats

java.lang.Object
org.cojen.tupl.diag.DatabaseStats
All Implemented Interfaces:
Serializable, Cloneable

public class DatabaseStats extends Object implements Cloneable, Serializable
Collection of database statistics.
See Also:
  • Field Details

    • pageSize

      public int pageSize
      The allocation page size
    • freePages

      public long freePages
      The amount of unused pages in the database.
    • totalPages

      public long totalPages
      The total amount of pages in the database.
    • cachePages

      public long cachePages
      The current size of the cache, in pages.
    • dirtyPages

      public long dirtyPages
      The count of pages which are dirty (need to be written with a checkpoint).
    • openIndexes

      public int openIndexes
      The amount of indexes currently open.
    • lockCount

      public long lockCount
      The amount of locks currently allocated. Locks are created as transactions access or modify records, and they are destroyed when transactions exit or reset. An accumulation of locks can indicate that transactions are not being reset properly.
    • cursorCount

      public long cursorCount
      The amount of cursors which are in a non-reset state. An accumulation of cursors can indicate that they are not being reset properly.
    • transactionCount

      public long transactionCount
      The amount of fully-established transactions which are in a non-reset state. This value is unaffected by transactions which make no changes, and it is also unaffected by auto-commit transactions. An accumulation of transactions can indicate that they are not being reset properly.
    • checkpointDuration

      public long checkpointDuration
      The time duration required for the last checkpoint to complete, in milliseconds. If no checkpoints are running, then zero is returned.
    • replicationBacklog

      public long replicationBacklog
      The amount of log bytes that a replica must apply to be fully caught up to the leader. If the member is currently the leader, then the backlog is zero.
  • Constructor Details

    • DatabaseStats

      public DatabaseStats()
  • Method Details