,I&Berkeley DB: DbLog.stat[P

DbLog.stat





import com.sleepycat.db.*;

public DbLogStat stat() throws DbException;





Description



7The DbLog.stat function creates a statistical structure<and returns it to the caller. The log region statistics are;stored in a DbLogStat object. The following DbLogStat datafields will be filled in:

R
public int st_magic;
The magic number that identifies a file as a log file.?
public int st_version;
The version of the log file type.D
public int st_refcnt;
The number of references to the region.5
public int st_regsize;
The size of the region.=
public int st_mode;
The mode of any created log files.X
public int st_lg_max;
The maximum size of any individual file comprising the log.K
public int st_w_mbytes;
The number of megabytes written to this log.h
public int st_w_bytes;
The number of bytes over and above st_w_mbytes written to this log.f
public int st_wc_mbytes;
The number of megabytes written to this log since the last checkpoint.i
public int st_wc_bytes;
The number of bytes over and above st_wc_mbytes written to this logsince the last checkpoint.R
public int st_wcount;
The number of times the log has been written to disk.R
public int st_scount;
The number of times the log has been flushed to disk.;
public int st_cur_file;
The current log file number.I
public int st_cur_offset;
The byte offset in the current log file.h
public int st_region_wait;
The number of times that a thread of control was forced to wait beforeobtaining the region lock.c
public int st_region_nowait;
The number of times that a thread of control was able to obtain the region lock without waiting.


The DbLog.statHmethod throws an exception that encapsulates an errno on failure.



Errors

RIf a fatal error occurs in Berkeley DB, the DbLog.stat method may fail and throw a}DbRunRecoveryException, at which point all subsequent database%calls will also fail in the same way.

The DbLog.stat&method may fail and throw an exceptionKfor any of the errors specified for the following Berkeley DB and C library functions: abort(3), fcntl(3), fprintf(3), getpid(3), malloc(3),and memset(3).



Class

3DbLog



See Also

>DbLog.archive,:DbLog.close,>DbLog.compare,8DbLog.file,:DbLog.flush,6DbLog.get,8DbLog.open,6DbLog.put,FDbLog.db_register, DbLog.stat,;DbLog.unlinkandJDbLog.db_unregister.
ÿÿ