Package com.sleepycat.db

## Class CacheFileStats

- java.lang.Object
- - com.sleepycat.db.CacheFileStats

-     public class CacheFileStats
      extends java.lang.Object

  Statistics for a file in the cache.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `getBackupSpins()` | Spins while trying to back up the file.
    `long` | `getCacheHit()` | Requested pages found in the cache.
    `long` | `getCacheMiss()` | Requested pages not found in the cache.
    `java.lang.String` | `getFileName()` | The name of the file.
    `int` | `getMap()` | Requested pages mapped into the process' address space.
    `long` | `getPageCreate()` | Pages created in the cache.
    `long` | `getPageIn()` | Pages read into the cache.
    `long` | `getPageOut()` | Pages written from the cache to the backing file.
    `int` | `getPageSize()` | Page size in bytes.
    `java.lang.String` | `toString()` | For convenience, the CacheFileStats class has a toString method that lists all the data fields.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getPageSize

          public int getPageSize()

      Page size in bytes.
      Returns:
        page size in bytes

    - #### getMap

          public int getMap()

      Requested pages mapped into the process' address space.
      Returns:
        requested pages mapped into the process' address space

    - #### getCacheHit

          public long getCacheHit()

      Requested pages found in the cache.
      Returns:
        requested pages found in the cache

    - #### getCacheMiss

          public long getCacheMiss()

      Requested pages not found in the cache.
      Returns:
        requested pages not found in the cache

    - #### getPageCreate

          public long getPageCreate()

      Pages created in the cache.
      Returns:
        pages created in the cache

    - #### getPageIn

          public long getPageIn()

      Pages read into the cache.
      Returns:
        pages read into the cache

    - #### getPageOut

          public long getPageOut()

      Pages written from the cache to the backing file.
      Returns:
        pages written from the cache to the backing file

    - #### getBackupSpins

          public long getBackupSpins()

      Spins while trying to back up the file.
      Returns:
        spins while trying to back up the file

    - #### getFileName

          public java.lang.String getFileName()

      The name of the file.
      Returns:
        the name of the file

    - #### toString

          public java.lang.String toString()

      For convenience, the CacheFileStats class has a toString method that lists all the data fields.
      Overrides:
        `toString` in class `java.lang.Object`
      Returns:
        a String that lists all the data fields

Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.