LogStats (Oracle Corporation - Berkeley DB Java API)
Keywords: com.sleepycat.db.LogStats class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.5.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sleepycat.db
Class LogStats

    java.lang.Object
      com.sleepycat.db.LogStats

    public class LogStats

extends Object

Log statistics for a database environment.

Method Summary
`int` | `getCurFile()` The current log file number.
`int` | `getCurOffset()` The byte offset in the current log file.
`int` | `getDiskFile()` The log file number of the last record known to be on disk.
`int` | `getDiskOffset()` The byte offset of the last record known to be on disk.
`int` | `getLgBSize()` The in-memory log record cache size.
`int` | `getLgSize()` The current log file size.
`int` | `getMagic()` The magic number that identifies a file as a log file.
`int` | `getMaxCommitperflush()` The maximum number of commits contained in a single log flush.
`int` | `getMinCommitperflush()` The minimum number of commits contained in a single log flush that contained a commit.
`int` | `getMode()` The mode of any created log files.
`int` | `getRCount()` The number of times the log has been read from disk.
`int` | `getRecord()` The number of records written to this log.
`int` | `getRegionNowait()` The number of times that a thread of control was able to obtain the region lock without waiting.
`int` | `getRegionWait()` The number of times that a thread of control was forced to wait before obtaining the region lock.
`int` | `getRegSize()` The size of the region.
`int` | `getSCount()` The number of times the log has been flushed to disk.
`int` | `getVersion()` The version of the log file type.
`int` | `getWBytes()` The number of bytes over and above st_w_mbytes written to this log.
`int` | `getWcBytes()` The number of bytes over and above `LogStats.getWcMbytes` written to this log since the last checkpoint.
`int` | `getWcMbytes()` The number of megabytes written to this log since the last checkpoint.
`int` | `getWCount()` The number of times the log has been written to disk.
`int` | `getWCountFill()` The number of times the log has been written to disk because the in-memory log record cache filled up.
`int` | `getWMbytes()` The number of megabytes written to this log.
`String` | `toString()` For convenience, the LogStats 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

### getMagic

    public int getMagic()

  The magic number that identifies a file as a log file.

### getVersion

    public int getVersion()

  The version of the log file type.

### getMode

    public int getMode()

  The mode of any created log files.

### getLgBSize

    public int getLgBSize()

  The in-memory log record cache size.

### getLgSize

    public int getLgSize()

  The current log file size.

### getRecord

    public int getRecord()

  The number of records written to this log.

### getRCount

    public int getRCount()

  The number of times the log has been read from disk.

### getWBytes

    public int getWBytes()

  The number of bytes over and above st_w_mbytes written to this log.

### getWMbytes

    public int getWMbytes()

  The number of megabytes written to this log.

### getWcBytes

    public int getWcBytes()

  The number of bytes over and above `LogStats.getWcMbytes` written to this log since the last checkpoint.

### getWcMbytes

    public int getWcMbytes()

  The number of megabytes written to this log since the last checkpoint.

### getWCount

    public int getWCount()

  The number of times the log has been written to disk.

### getWCountFill

    public int getWCountFill()

  The number of times the log has been written to disk because the in-memory log record cache filled up.

### getSCount

    public int getSCount()

  The number of times the log has been flushed to disk.

### getRegionWait

    public int getRegionWait()

  The number of times that a thread of control was forced to wait before obtaining the region lock.

### getRegionNowait

    public int getRegionNowait()

  The number of times that a thread of control was able to obtain the region lock without waiting.

### getCurFile

    public int getCurFile()

  The current log file number.

### getCurOffset

    public int getCurOffset()

  The byte offset in the current log file.

### getDiskFile

    public int getDiskFile()

  The log file number of the last record known to be on disk.

### getDiskOffset

    public int getDiskOffset()

  The byte offset of the last record known to be on disk.

### getRegSize

    public int getRegSize()

  The size of the region.

### getMaxCommitperflush

    public int getMaxCommitperflush()

  The maximum number of commits contained in a single log flush.

### getMinCommitperflush

    public int getMinCommitperflush()

  The minimum number of commits contained in a single log flush that contained a commit.

### toString

    public String toString()

  For convenience, the LogStats class has a toString method that lists all the data fields.

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.5.20
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright(c) 1996-2006 Oracle Corporation - All rights reserved.