Berkeley DB: Db.fd
Полезная информация


import com.sleepycat.db.*;

public int fd() throws DbException;


The Db.fd method returns a file descriptor representative of the underlying database. This method does not fit well into the Java framework and may be removed in subsequent releases. Applications should use the lock manager where possible.

The Db.fd method throws an exception that encapsulates an errno on failure.


If a fatal error occurs in Berkeley DB, the Db.fd method may fail and throw a DbRunRecoveryException, at which point all subsequent database calls will also fail in the same way.

The Db.fd method may fail and throw an exception for any of the errors specified for the following Berkeley DB and C library functions: DBmemp->pgin(3), DBmemp->pgout(3), abort(3), close(3), dbenv->db_paniccall(3), fcntl(3), fflush(3), fprintf(3), free(3), fsync(3), getenv(3), getpid(3), getuid(3), isdigit(3),, DbLog.flush, lseek(3), malloc(3), memcpy(3), memset(3), open(3), pread(3), pwrite(3), qsort(3), read(3), realloc(3), sigfillset(3), sigprocmask(3), stat(3), strerror(3), strlen(3), unlink(3), vfprintf(3), vsnprintf(3), and write(3).



See Also

Db.close, Db.cursor, Db.del, Db.fd, Db.get, Db.get_byteswapped, Db.get_type, Db.join,, Db.put, Db.stat and Db.sync.