diff options
Diffstat (limited to 'db/test/scr016/TestGetSetMethods.java')
-rw-r--r-- | db/test/scr016/TestGetSetMethods.java | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/db/test/scr016/TestGetSetMethods.java b/db/test/scr016/TestGetSetMethods.java index 71bdebe0f..1ac9d5926 100644 --- a/db/test/scr016/TestGetSetMethods.java +++ b/db/test/scr016/TestGetSetMethods.java @@ -1,10 +1,10 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2000-2002 + * Copyright (c) 2000-2003 * Sleepycat Software. All rights reserved. * - * Id: TestGetSetMethods.java,v 1.3 2002/01/11 15:54:02 bostic Exp + * $Id: TestGetSetMethods.java,v 1.6 2003/05/28 08:29:46 mjc Exp $ */ /* @@ -26,21 +26,21 @@ public class TestGetSetMethods DbTxn dbtxn; byte[][] conflicts = new byte[10][10]; - dbenv.set_timeout(0x90000000, + dbenv.setTimeout(0x90000000, Db.DB_SET_LOCK_TIMEOUT); - dbenv.set_lg_bsize(0x1000); - dbenv.set_lg_dir("."); - dbenv.set_lg_max(0x10000000); - dbenv.set_lg_regionmax(0x100000); - dbenv.set_lk_conflicts(conflicts); - dbenv.set_lk_detect(Db.DB_LOCK_DEFAULT); + dbenv.setLogBufferSize(0x1000); + dbenv.setLogDir("."); + dbenv.setLogMax(0x10000000); + dbenv.setLogRegionMax(0x100000); + dbenv.setLockConflicts(conflicts); + dbenv.setLockDetect(Db.DB_LOCK_DEFAULT); // exists, but is deprecated: // dbenv.set_lk_max(0); - dbenv.set_lk_max_lockers(100); - dbenv.set_lk_max_locks(10); - dbenv.set_lk_max_objects(1000); - dbenv.set_mp_mmapsize(0x10000); - dbenv.set_tas_spins(1000); + dbenv.setLockMaxLockers(100); + dbenv.setLockMaxLocks(10); + dbenv.setLockMaxObjects(1000); + dbenv.setMemoryPoolMapSize(0x10000); + dbenv.setTestAndSetSpins(1000); // Need to open the environment so we // can get a transaction. @@ -50,39 +50,39 @@ public class TestGetSetMethods Db.DB_INIT_MPOOL, 0644); - dbtxn = dbenv.txn_begin(null, Db.DB_TXN_NOWAIT); - dbtxn.set_timeout(0xA0000000, Db.DB_SET_TXN_TIMEOUT); + dbtxn = dbenv.txnBegin(null, Db.DB_TXN_NOWAIT); + dbtxn.setTimeout(0xA0000000, Db.DB_SET_TXN_TIMEOUT); dbtxn.abort(); dbenv.close(0); // We get a db, one for each type. // That's because once we call (for instance) - // set_bt_maxkey, DB 'knows' that this is a + // setBtreeMinKey, DB 'knows' that this is a // Btree Db, and it cannot be used to try Hash // or Recno functions. // Db db_bt = new Db(null, 0); - db_bt.set_bt_maxkey(10000); - db_bt.set_bt_minkey(100); - db_bt.set_cachesize(0, 0x100000, 0); + db_bt.setBtreeMinKey(100); + db_bt.setCacheSize(0x100000, 0); db_bt.close(0); Db db_h = new Db(null, 0); - db_h.set_h_ffactor(0x10); - db_h.set_h_nelem(100); - db_h.set_lorder(0); - db_h.set_pagesize(0x10000); + db_h.setHashFillFactor(0x10); + db_h.setHashNumElements(100); + db_h.setByteOrder(0); + db_h.setPageSize(0x10000); db_h.close(0); Db db_re = new Db(null, 0); - db_re.set_re_delim('@'); - db_re.set_re_pad(10); - db_re.set_re_source("re.in"); + db_re.setRecordDelimiter('@'); + db_re.setRecordPad(10); + db_re.setRecordSource("re.in"); + db_re.setRecordLength(1000); db_re.close(0); Db db_q = new Db(null, 0); - db_q.set_q_extentsize(200); + db_q.setQueueExtentSize(200); db_q.close(0); } |