diff options
Diffstat (limited to 'lang/java/src/com/sleepycat/db/internal')
15 files changed, 244 insertions, 49 deletions
diff --git a/lang/java/src/com/sleepycat/db/internal/Db.java b/lang/java/src/com/sleepycat/db/internal/Db.java index 941091b3..359792da 100644 --- a/lang/java/src/com/sleepycat/db/internal/Db.java +++ b/lang/java/src/com/sleepycat/db/internal/Db.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -364,6 +364,16 @@ public class Db { public int get_assoc_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.Db_get_assoc_flags(swigCPtr, this); } + public String get_blob_dir() throws com.sleepycat.db.DatabaseException { + return db_javaJNI.Db_get_blob_dir(swigCPtr, this); + } + + public String get_blob_sub_dir() throws com.sleepycat.db.DatabaseException { + return db_javaJNI.Db_get_blob_sub_dir(swigCPtr, this); + } + + public int get_blob_threshold() throws com.sleepycat.db.DatabaseException { return db_javaJNI.Db_get_blob_threshold(swigCPtr, this); } + public boolean get_byteswapped() throws com.sleepycat.db.DatabaseException { return db_javaJNI.Db_get_byteswapped(swigCPtr, this); } public long get_cachesize() throws com.sleepycat.db.DatabaseException { @@ -476,6 +486,10 @@ public class Db { public void set_append_recno(com.sleepycat.db.RecordNumberAppender db_append_recno_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_append_recno(swigCPtr, this, (append_recno_handler = db_append_recno_fcn) != null ); } + public void set_blob_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_blob_dir(swigCPtr, this, dir); } + + public void set_blob_threshold(int bytes, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_blob_threshold(swigCPtr, this, bytes, flags); } + public void set_bt_compare(java.util.Comparator bt_compare_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_bt_compare(swigCPtr, this, (bt_compare_handler = bt_compare_fcn) != null ); } public void set_bt_minkey(int bt_minkey) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_bt_minkey(swigCPtr, this, bt_minkey); } @@ -512,6 +526,10 @@ public class Db { public void set_lorder(int lorder) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_lorder(swigCPtr, this, lorder); } + public int set_msgfile(String msgfile) /* no exception */ { + return db_javaJNI.Db_set_msgfile(swigCPtr, this, msgfile); + } + public void set_pagesize(long pagesize) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_pagesize(swigCPtr, this, pagesize); } public void set_partition(int parts, com.sleepycat.db.DatabaseEntry keys, com.sleepycat.db.PartitionHandler db_partition_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_set_partition(swigCPtr, this, parts, keys, (partition_handler = db_partition_fcn) != null ); } @@ -534,6 +552,10 @@ public class Db { public Object stat(DbTxn txnid, int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.Db_stat(swigCPtr, this, DbTxn.getCPtr(txnid), txnid, flags); } + public int stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.Db_stat_print(swigCPtr, this, flags); + } + public void sync(int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.Db_sync(swigCPtr, this, flags); } public int truncate(DbTxn txnid, int flags) throws com.sleepycat.db.DatabaseException { diff --git a/lang/java/src/com/sleepycat/db/internal/DbChannel.java b/lang/java/src/com/sleepycat/db/internal/DbChannel.java index f97e7aab..33c9fab8 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbChannel.java +++ b/lang/java/src/com/sleepycat/db/internal/DbChannel.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbConstants.java b/lang/java/src/com/sleepycat/db/internal/DbConstants.java index 4028514e..188b568b 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbConstants.java +++ b/lang/java/src/com/sleepycat/db/internal/DbConstants.java @@ -34,11 +34,12 @@ public interface DbConstants int DB_CREATE = 0x00000001; int DB_CURRENT = 6; int DB_CURSOR_BULK = 0x00000001; - int DB_DBT_BULK = 0x002; - int DB_DBT_MALLOC = 0x010; - int DB_DBT_PARTIAL = 0x040; - int DB_DBT_READONLY = 0x100; - int DB_DBT_USERMEM = 0x800; + int DB_DBT_BLOB = 0x1000; + int DB_DBT_BULK = 0x0002; + int DB_DBT_MALLOC = 0x0010; + int DB_DBT_PARTIAL = 0x0040; + int DB_DBT_READONLY = 0x0100; + int DB_DBT_USERMEM = 0x0800; int DB_DIRECT_DB = 0x00000200; int DB_DSYNC_DB = 0x00000400; int DB_DUP = 0x00000010; @@ -54,6 +55,7 @@ public interface DbConstants int DB_FLUSH = 0x00000002; int DB_FORCE = 0x00000001; int DB_FORCESYNC = 0x00000001; + int DB_FORCESYNCENV = 0x00000002; int DB_FOREIGN_ABORT = 0x00000001; int DB_FOREIGN_CASCADE = 0x00000002; int DB_FOREIGN_NULLIFY = 0x00000004; @@ -65,7 +67,6 @@ public interface DbConstants int DB_GROUP_CREATOR = 0x00000002; int DB_HASH = 2; int DB_HEAP = 6; - int DB_HEAP_FULL = -30996; int DB_HOTBACKUP_IN_PROGRESS = 0x00000800; int DB_IGNORE_LEASE = 0x00001000; int DB_IMMUTABLE_KEY = 0x00000002; @@ -110,10 +111,12 @@ public interface DbConstants int DB_LOCK_WRITE = 2; int DB_LOCK_YOUNGEST = 9; int DB_LOG_AUTO_REMOVE = 0x00000001; - int DB_LOG_DIRECT = 0x00000002; - int DB_LOG_DSYNC = 0x00000004; - int DB_LOG_IN_MEMORY = 0x00000008; - int DB_LOG_ZERO = 0x00000010; + int DB_LOG_BLOB = 0x00000002; + int DB_LOG_DIRECT = 0x00000004; + int DB_LOG_DSYNC = 0x00000008; + int DB_LOG_IN_MEMORY = 0x00000010; + int DB_LOG_NOSYNC = 0x00000020; + int DB_LOG_ZERO = 0x00000040; int DB_MEM_LOCK = 1; int DB_MEM_LOCKOBJECT = 2; int DB_MEM_LOCKER = 3; @@ -170,21 +173,24 @@ public interface DbConstants int DB_REPMGR_ACKS_QUORUM = 7; int DB_REPMGR_CONF_2SITE_STRICT = 0x00000001; int DB_REPMGR_CONF_ELECTIONS = 0x00000002; + int DB_REPMGR_CONF_PREFMAS_CLIENT = 0x00000004; + int DB_REPMGR_CONF_PREFMAS_MASTER = 0x00000008; int DB_REPMGR_CONNECTED = 1; int DB_REPMGR_DISCONNECTED = 2; int DB_REPMGR_NEED_RESPONSE = 0x00000001; int DB_REPMGR_ISPEER = 0x01; + int DB_REPMGR_ISVIEW = 0x02; int DB_REPMGR_PEER = 0x00000010; int DB_REP_ACK_TIMEOUT = 1; int DB_REP_ANYWHERE = 0x00000001; int DB_REP_CHECKPOINT_DELAY = 2; int DB_REP_CLIENT = 0x00000001; - int DB_REP_CONF_AUTOINIT = 0x00000004; - int DB_REP_CONF_BULK = 0x00000010; - int DB_REP_CONF_DELAYCLIENT = 0x00000020; - int DB_REP_CONF_INMEM = 0x00000040; - int DB_REP_CONF_LEASE = 0x00000080; - int DB_REP_CONF_NOWAIT = 0x00000100; + int DB_REP_CONF_AUTOINIT = 0x00000010; + int DB_REP_CONF_BULK = 0x00000040; + int DB_REP_CONF_DELAYCLIENT = 0x00000080; + int DB_REP_CONF_INMEM = 0x00000200; + int DB_REP_CONF_LEASE = 0x00000400; + int DB_REP_CONF_NOWAIT = 0x00000800; int DB_REP_CONNECTION_RETRY = 3; int DB_REP_DEFAULT_PRIORITY = 100; int DB_REP_ELECTION = 0x00000004; @@ -215,11 +221,14 @@ public interface DbConstants int DB_SET_TXN_TIMEOUT = 0x00000002; int DB_SNAPSHOT = 0x00000200; int DB_STAT_CLEAR = 0x00000001; + int DB_STREAM_READ = 0x00000001; + int DB_STREAM_SYNC_WRITE = 0x00000004; + int DB_STREAM_WRITE = 0x00000002; int DB_SYSTEM_MEM = 0x00080000; int DB_THREAD = 0x00000020; int DB_TIMEOUT = -30971; int DB_TIME_NOTGRANTED = 0x00040000; - int DB_TRUNCATE = 0x00020000; + int DB_TRUNCATE = 0x00040000; int DB_TXN_ABORT = 0; int DB_TXN_APPLY = 1; int DB_TXN_BACKWARD_ROLL = 3; @@ -242,23 +251,23 @@ public interface DbConstants int DB_VERB_DEADLOCK = 0x00000002; int DB_VERB_FILEOPS = 0x00000004; int DB_VERB_FILEOPS_ALL = 0x00000008; - int DB_VERB_RECOVERY = 0x00000010; - int DB_VERB_REGISTER = 0x00000020; - int DB_VERB_REPLICATION = 0x00000040; - int DB_VERB_REPMGR_CONNFAIL = 0x00000080; - int DB_VERB_REPMGR_MISC = 0x00000100; - int DB_VERB_REP_ELECT = 0x00000200; - int DB_VERB_REP_LEASE = 0x00000400; - int DB_VERB_REP_MISC = 0x00000800; - int DB_VERB_REP_MSGS = 0x00001000; - int DB_VERB_REP_SYNC = 0x00002000; - int DB_VERB_REP_SYSTEM = 0x00004000; - int DB_VERB_REP_TEST = 0x00008000; - int DB_VERB_WAITSFOR = 0x00010000; + int DB_VERB_RECOVERY = 0x00000020; + int DB_VERB_REGISTER = 0x00000040; + int DB_VERB_REPLICATION = 0x00000080; + int DB_VERB_REPMGR_CONNFAIL = 0x00000100; + int DB_VERB_REPMGR_MISC = 0x00000200; + int DB_VERB_REP_ELECT = 0x00000400; + int DB_VERB_REP_LEASE = 0x00000800; + int DB_VERB_REP_MISC = 0x00001000; + int DB_VERB_REP_MSGS = 0x00002000; + int DB_VERB_REP_SYNC = 0x00004000; + int DB_VERB_REP_SYSTEM = 0x00008000; + int DB_VERB_REP_TEST = 0x00010000; + int DB_VERB_WAITSFOR = 0x00020000; int DB_VERIFY = 0x00000002; - int DB_VERSION_MAJOR = 5; - int DB_VERSION_MINOR = 3; - int DB_VERSION_PATCH = 21; + int DB_VERSION_MAJOR = 6; + int DB_VERSION_MINOR = 1; + int DB_VERSION_PATCH = 23; int DB_WRITECURSOR = 0x00000010; int DB_YIELDCPU = 0x00080000; } diff --git a/lang/java/src/com/sleepycat/db/internal/DbEnv.java b/lang/java/src/com/sleepycat/db/internal/DbEnv.java index ad8b152f..3f3455c4 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbEnv.java +++ b/lang/java/src/com/sleepycat/db/internal/DbEnv.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -50,6 +50,7 @@ public class DbEnv { private String errpfx; private MessageHandler message_handler; private PanicHandler panic_handler; + private ReplicationViewHandler rep_view_handler; private ReplicationManagerMessageDispatch repmgr_msg_dispatch_handler; private ReplicationTransport rep_transport_handler; private java.io.OutputStream error_stream; @@ -107,6 +108,10 @@ public class DbEnv { event_notify_handler.handlePanicEvent(); } + private final void handle_rep_autotakeover_failed_event_notify() { + event_notify_handler.handleRepAutoTakeoverFailedEvent(); + } + private final void handle_rep_client_event_notify() { event_notify_handler.handleRepClientEvent(); } @@ -135,9 +140,13 @@ public class DbEnv { event_notify_handler.handleRepElectionFailedEvent(); } - private final void handle_rep_init_done_event_notify() { - event_notify_handler.handleRepInitDoneEvent(); - } + private final void handle_rep_init_done_event_notify() { + event_notify_handler.handleRepInitDoneEvent(); + } + + private final void handle_rep_inqueue_full_event_notify() { + event_notify_handler.handleRepInQueueFullEvent(); + } private final void handle_rep_join_failure_event_notify() { event_notify_handler.handleRepJoinFailureEvent(); @@ -255,6 +264,10 @@ public class DbEnv { return panic_handler; } + public final boolean handle_rep_view(String name, int flags) throws com.sleepycat.db.DatabaseException { + return rep_view_handler.partial_view(wrapper, name, flags); + } + private final int handle_rep_transport(DatabaseEntry control, DatabaseEntry rec, LogSequenceNumber lsn, @@ -373,6 +386,12 @@ public class DbEnv { public void fileid_reset(String file, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_fileid_reset(swigCPtr, this, file, flags); } + public String get_blob_dir() throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_get_blob_dir(swigCPtr, this); + } + + public int get_blob_threshold() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_blob_threshold(swigCPtr, this); } + public String[] get_data_dirs() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_data_dirs(swigCPtr, this); } public int get_encrypt_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_encrypt_flags(swigCPtr, this); } @@ -409,6 +428,10 @@ public class DbEnv { /* package */ void remove0(String db_home, int flags) { db_javaJNI.DbEnv_remove0(swigCPtr, this, db_home, flags); } + public void set_blob_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_blob_dir(swigCPtr, this, dir); } + + public void set_blob_threshold(int bytes, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_blob_threshold(swigCPtr, this, bytes, flags); } + public void set_cachesize(long bytes, int ncache) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_cachesize(swigCPtr, this, bytes, ncache); } public void set_cache_max(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_cache_max(swigCPtr, this, bytes); } @@ -445,6 +468,10 @@ public class DbEnv { db_javaJNI.DbEnv_set_msgcall(swigCPtr, this, (message_handler = db_msgcall_fcn) != null ); } + public int set_msgfile(String msgfile) /* no exception */ { + return db_javaJNI.DbEnv_set_msgfile(swigCPtr, this, msgfile); + } + public void set_paniccall(com.sleepycat.db.PanicHandler db_panic_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_paniccall(swigCPtr, this, (panic_handler = db_panic_fcn) != null ); } public void set_shm_key(long shm_key) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_shm_key(swigCPtr, this, shm_key); } @@ -502,6 +529,10 @@ public class DbEnv { public com.sleepycat.db.LockStats lock_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_lock_stat(swigCPtr, this, flags); } + public int lock_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_lock_stat_print(swigCPtr, this, flags); + } + public void set_lk_conflicts(byte[][] conflicts) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_conflicts(swigCPtr, this, conflicts); } public void set_lk_detect(int detect) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_detect(swigCPtr, this, detect); } @@ -563,6 +594,10 @@ public class DbEnv { public com.sleepycat.db.LogStats log_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_log_stat(swigCPtr, this, flags); } + public int log_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_log_stat_print(swigCPtr, this, flags); + } + public int log_verify(String envhome, int cachesz, String dbfile, String dbname, long stime, long etime, int stfile, int stoffset, int efile, int eoffset, int caf, int verbose) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_log_verify(swigCPtr, this, envhome, cachesz, dbfile, dbname, stime, etime, stfile, stoffset, efile, eoffset, caf, verbose); } @@ -615,6 +650,10 @@ public class DbEnv { public com.sleepycat.db.CacheStats memp_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_memp_stat(swigCPtr, this, flags); } + public int memp_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_memp_stat_print(swigCPtr, this, flags); + } + public com.sleepycat.db.CacheFileStats[] memp_fstat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_memp_fstat(swigCPtr, this, flags); } public void memp_sync(com.sleepycat.db.LogSequenceNumber lsn_or_null) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_memp_sync(swigCPtr, this, lsn_or_null); } @@ -645,12 +684,20 @@ public class DbEnv { public com.sleepycat.db.MutexStats mutex_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_stat(swigCPtr, this, flags); } + public int mutex_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_mutex_stat_print(swigCPtr, this, flags); + } + public int get_tx_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_tx_max(swigCPtr, this); } public long get_tx_timestamp() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_tx_timestamp(swigCPtr, this); } public long get_timeout(int flag) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_timeout(swigCPtr, this, flag); } + public int stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_stat_print(swigCPtr, this, flags); + } + public int txn_applied(byte[] token, int maxwait, int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_txn_applied(swigCPtr, this, token, maxwait, flags); } @@ -666,6 +713,10 @@ public class DbEnv { public com.sleepycat.db.TransactionStats txn_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_txn_stat(swigCPtr, this, flags); } + public int txn_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_txn_stat_print(swigCPtr, this, flags); + } + public long rep_get_limit() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_limit(swigCPtr, this); } @@ -694,6 +745,10 @@ public class DbEnv { public com.sleepycat.db.ReplicationStats rep_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_stat(swigCPtr, this, flags); } + public int rep_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_rep_stat_print(swigCPtr, this, flags); + } + public void rep_set_limit(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_limit(swigCPtr, this, bytes); } public int rep_get_request_min() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_request_min(swigCPtr, this); } @@ -709,6 +764,8 @@ public class DbEnv { public void rep_set_transport(int envid, com.sleepycat.db.ReplicationTransport send) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_transport(swigCPtr, this, envid, (rep_transport_handler = send) != null ); } + public void rep_set_view(com.sleepycat.db.ReplicationViewHandler rep_view_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_view(swigCPtr, this, (rep_view_handler = rep_view_fcn) != null ); } + public int rep_get_nsites() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_nsites(swigCPtr, this); } public int rep_get_priority() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_priority(swigCPtr, this); } @@ -725,6 +782,10 @@ public class DbEnv { return db_javaJNI.DbEnv_repmgr_get_ack_policy(swigCPtr, this); } + public long repmgr_get_incoming_queue_max() throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_repmgr_get_incoming_queue_max(swigCPtr, this); + } + public DbSite repmgr_local_site() throws com.sleepycat.db.DatabaseException { long cPtr = db_javaJNI.DbEnv_repmgr_local_site(swigCPtr, this); return (cPtr == 0) ? null : new DbSite(cPtr, false); @@ -732,6 +793,8 @@ public class DbEnv { public void repmgr_set_ack_policy(int policy) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_repmgr_set_ack_policy(swigCPtr, this, policy); } + public void repmgr_set_incoming_queue_max(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_repmgr_set_incoming_queue_max(swigCPtr, this, bytes); } + public DbSite repmgr_site(String host, long port) throws com.sleepycat.db.DatabaseException { long cPtr = db_javaJNI.DbEnv_repmgr_site(swigCPtr, this, host, port); return (cPtr == 0) ? null : new DbSite(cPtr, false); @@ -750,6 +813,10 @@ public class DbEnv { public com.sleepycat.db.ReplicationManagerStats repmgr_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_repmgr_stat(swigCPtr, this, flags); } + public int repmgr_stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbEnv_repmgr_stat_print(swigCPtr, this, flags); + } + public int get_backup_config(int config_type) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_backup_config(swigCPtr, this, config_type); } public void backup(String target, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_backup(swigCPtr, this, target, flags); } diff --git a/lang/java/src/com/sleepycat/db/internal/DbLock.java b/lang/java/src/com/sleepycat/db/internal/DbLock.java index 8cd42c40..dd64dd85 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbLock.java +++ b/lang/java/src/com/sleepycat/db/internal/DbLock.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbLogc.java b/lang/java/src/com/sleepycat/db/internal/DbLogc.java index 3b9613dd..a833741f 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbLogc.java +++ b/lang/java/src/com/sleepycat/db/internal/DbLogc.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbMpoolFile.java b/lang/java/src/com/sleepycat/db/internal/DbMpoolFile.java index 2d05e67b..7ebedb2b 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbMpoolFile.java +++ b/lang/java/src/com/sleepycat/db/internal/DbMpoolFile.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbSequence.java b/lang/java/src/com/sleepycat/db/internal/DbSequence.java index f4df2b16..38299b85 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbSequence.java +++ b/lang/java/src/com/sleepycat/db/internal/DbSequence.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -90,4 +90,8 @@ public class DbSequence { public com.sleepycat.db.SequenceStats stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbSequence_stat(swigCPtr, this, flags); } + public int stat_print(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbSequence_stat_print(swigCPtr, this, flags); + } + } diff --git a/lang/java/src/com/sleepycat/db/internal/DbSite.java b/lang/java/src/com/sleepycat/db/internal/DbSite.java index 680a6fc7..5e5ff87c 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbSite.java +++ b/lang/java/src/com/sleepycat/db/internal/DbSite.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbStream.java b/lang/java/src/com/sleepycat/db/internal/DbStream.java new file mode 100644 index 00000000..aa666baf --- /dev/null +++ b/lang/java/src/com/sleepycat/db/internal/DbStream.java @@ -0,0 +1,59 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.12 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package com.sleepycat.db.internal; + +import com.sleepycat.db.*; +import java.util.Comparator; + +public class DbStream { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected DbStream(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(DbStream obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + /* package */ synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new UnsupportedOperationException("C++ destructor does not have public access"); + } + swigCPtr = 0; + } + } + + public synchronized void close(int flags) throws DatabaseException { + try { + close0(flags); + } finally { + swigCPtr = 0; + } + } + + /* package */ void close0(int flags) { db_javaJNI.DbStream_close0(swigCPtr, this, flags); } + + public int read(com.sleepycat.db.DatabaseEntry data, long offset, int size, int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbStream_read(swigCPtr, this, data, offset, size, flags); + } + + public long size(int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbStream_size(swigCPtr, this, flags); + } + + public int write(com.sleepycat.db.DatabaseEntry data, long offset, int flags) throws com.sleepycat.db.DatabaseException { + return db_javaJNI.DbStream_write(swigCPtr, this, data, offset, flags); + } + +} diff --git a/lang/java/src/com/sleepycat/db/internal/DbTxn.java b/lang/java/src/com/sleepycat/db/internal/DbTxn.java index b24e8b15..0815f7ed 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbTxn.java +++ b/lang/java/src/com/sleepycat/db/internal/DbTxn.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/DbUtil.java b/lang/java/src/com/sleepycat/db/internal/DbUtil.java index 83d6d65e..eae4dda8 100644 --- a/lang/java/src/com/sleepycat/db/internal/DbUtil.java +++ b/lang/java/src/com/sleepycat/db/internal/DbUtil.java @@ -1,7 +1,7 @@ /*- * See the file LICENSE for redistribution information. * - * Copyright (c) 2001, 2012 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2015 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ diff --git a/lang/java/src/com/sleepycat/db/internal/Dbc.java b/lang/java/src/com/sleepycat/db/internal/Dbc.java index b74f41d7..5dd47fe2 100644 --- a/lang/java/src/com/sleepycat/db/internal/Dbc.java +++ b/lang/java/src/com/sleepycat/db/internal/Dbc.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -50,6 +50,11 @@ public class Dbc { public int count(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.Dbc_count(swigCPtr, this, flags); } + public DbStream db_stream(int flags) throws com.sleepycat.db.DatabaseException { + long cPtr = db_javaJNI.Dbc_db_stream(swigCPtr, this, flags); + return (cPtr == 0) ? null : new DbStream(cPtr, false); + } + public int del(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.Dbc_del(swigCPtr, this, flags); } diff --git a/lang/java/src/com/sleepycat/db/internal/db_java.java b/lang/java/src/com/sleepycat/db/internal/db_java.java index 373ae5a3..01d40188 100644 --- a/lang/java/src/com/sleepycat/db/internal/db_java.java +++ b/lang/java/src/com/sleepycat/db/internal/db_java.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. diff --git a/lang/java/src/com/sleepycat/db/internal/db_javaJNI.java b/lang/java/src/com/sleepycat/db/internal/db_javaJNI.java index 8432d409..bb26fa91 100644 --- a/lang/java/src/com/sleepycat/db/internal/db_javaJNI.java +++ b/lang/java/src/com/sleepycat/db/internal/db_javaJNI.java @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 + * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. @@ -88,6 +88,9 @@ class db_javaJNI { public final static native int Db_exists(long jarg1, Db jarg1_, long jarg2, DbTxn jarg2_, com.sleepycat.db.DatabaseEntry jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; public final static native int Db_get(long jarg1, Db jarg1_, long jarg2, DbTxn jarg2_, com.sleepycat.db.DatabaseEntry jarg3, com.sleepycat.db.DatabaseEntry jarg4, int jarg5) throws com.sleepycat.db.DatabaseException; public final static native int Db_get_assoc_flags(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; + public final static native String Db_get_blob_dir(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; + public final static native String Db_get_blob_sub_dir(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; + public final static native int Db_get_blob_threshold(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; public final static native boolean Db_get_byteswapped(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; public final static native long Db_get_cachesize(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int Db_get_cachesize_ncache(long jarg1, Db jarg1_) throws com.sleepycat.db.DatabaseException; @@ -126,6 +129,8 @@ class db_javaJNI { /* package */ final static native void Db_remove0(long jarg1, Db jarg1_, String jarg2, String jarg3, int jarg4); /* package */ final static native void Db_rename0(long jarg1, Db jarg1_, String jarg2, String jarg3, String jarg4, int jarg5); public final static native void Db_set_append_recno(long jarg1, Db jarg1_, boolean jarg2) throws com.sleepycat.db.DatabaseException; + public final static native void Db_set_blob_dir(long jarg1, Db jarg1_, String jarg2) throws com.sleepycat.db.DatabaseException; + public final static native void Db_set_blob_threshold(long jarg1, Db jarg1_, int jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_bt_compare(long jarg1, Db jarg1_, boolean jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_bt_minkey(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_bt_compress(long jarg1, Db jarg1_, boolean jarg2, boolean jarg3) throws com.sleepycat.db.DatabaseException; @@ -144,6 +149,7 @@ class db_javaJNI { public final static native void Db_set_h_nelem(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_lk_exclusive(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_lorder(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int Db_set_msgfile(long jarg1, Db jarg1_, String jarg2) /* no exception */; public final static native void Db_set_pagesize(long jarg1, Db jarg1_, long jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_partition(long jarg1, Db jarg1_, int jarg2, com.sleepycat.db.DatabaseEntry jarg3, boolean jarg4) throws com.sleepycat.db.DatabaseException; public final static native void Db_set_partition_dirs(long jarg1, Db jarg1_, String[] jarg2) throws com.sleepycat.db.DatabaseException; @@ -155,6 +161,7 @@ class db_javaJNI { public final static native void Db_set_q_extentsize(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_sort_multiple(long jarg1, Db jarg1_, com.sleepycat.db.DatabaseEntry jarg2, com.sleepycat.db.DatabaseEntry jarg3) throws com.sleepycat.db.DatabaseException; public final static native Object Db_stat(long jarg1, Db jarg1_, long jarg2, DbTxn jarg2_, int jarg3) throws com.sleepycat.db.DatabaseException; + public final static native int Db_stat_print(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void Db_sync(long jarg1, Db jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int Db_truncate(long jarg1, Db jarg1_, long jarg2, DbTxn jarg2_, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void Db_upgrade(long jarg1, Db jarg1_, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; @@ -162,6 +169,7 @@ class db_javaJNI { /* package */ final static native void Dbc_close0(long jarg1, Dbc jarg1_); public final static native int Dbc_cmp(long jarg1, Dbc jarg1_, long jarg2, Dbc jarg2_, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native int Dbc_count(long jarg1, Dbc jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native long Dbc_db_stream(long jarg1, Dbc jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int Dbc_del(long jarg1, Dbc jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native long Dbc_dup(long jarg1, Dbc jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int Dbc_get(long jarg1, Dbc jarg1_, com.sleepycat.db.DatabaseEntry jarg2, com.sleepycat.db.DatabaseEntry jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; @@ -177,6 +185,8 @@ class db_javaJNI { public final static native void DbEnv_errx(long jarg1, DbEnv jarg1_, String jarg2) /* no exception */; public final static native long DbEnv_cdsgroup_begin(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_fileid_reset(long jarg1, DbEnv jarg1_, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; + public final static native String DbEnv_get_blob_dir(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_get_blob_threshold(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native String[] DbEnv_get_data_dirs(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_get_encrypt_flags(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_get_flags(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; @@ -191,6 +201,8 @@ class db_javaJNI { public final static native void DbEnv_lsn_reset(long jarg1, DbEnv jarg1_, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_open(long jarg1, DbEnv jarg1_, String jarg2, int jarg3, int jarg4) throws com.sleepycat.db.DatabaseException, java.io.FileNotFoundException; /* package */ final static native void DbEnv_remove0(long jarg1, DbEnv jarg1_, String jarg2, int jarg3); + public final static native void DbEnv_set_blob_dir(long jarg1, DbEnv jarg1_, String jarg2) throws com.sleepycat.db.DatabaseException; + public final static native void DbEnv_set_blob_threshold(long jarg1, DbEnv jarg1_, int jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_cachesize(long jarg1, DbEnv jarg1_, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_cache_max(long jarg1, DbEnv jarg1_, long jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_create_dir(long jarg1, DbEnv jarg1_, String jarg2) throws com.sleepycat.db.DatabaseException; @@ -207,6 +219,7 @@ class db_javaJNI { public final static native void DbEnv_set_mp_pagesize(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_mp_tablesize(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_msgcall(long jarg1, DbEnv jarg1_, boolean jarg2) /* no exception */; + public final static native int DbEnv_set_msgfile(long jarg1, DbEnv jarg1_, String jarg2) /* no exception */; public final static native void DbEnv_set_paniccall(long jarg1, DbEnv jarg1_, boolean jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_shm_key(long jarg1, DbEnv jarg1_, long jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_timeout(long jarg1, DbEnv jarg1_, long jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; @@ -232,6 +245,7 @@ class db_javaJNI { public final static native void DbEnv_lock_id_free(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_lock_put(long jarg1, DbEnv jarg1_, long jarg2, DbLock jarg2_) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.LockStats DbEnv_lock_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_lock_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_lk_conflicts(long jarg1, DbEnv jarg1_, byte[][] jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_lk_detect(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_lk_max_lockers(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; @@ -257,6 +271,7 @@ class db_javaJNI { public final static native void DbEnv_log_print(long jarg1, DbEnv jarg1_, long jarg2, DbTxn jarg2_, String jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_log_set_config(long jarg1, DbEnv jarg1_, int jarg2, boolean jarg3) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.LogStats DbEnv_log_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_log_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_log_verify(long jarg1, DbEnv jarg1_, String jarg2, int jarg3, String jarg4, String jarg5, long jarg6, long jarg7, int jarg8, int jarg9, int jarg10, int jarg11, int jarg12, int jarg13) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_lg_bsize(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_set_lg_dir(long jarg1, DbEnv jarg1_, String jarg2) throws com.sleepycat.db.DatabaseException; @@ -274,6 +289,7 @@ class db_javaJNI { public final static native int DbEnv_get_mp_pagesize(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_get_mp_tablesize(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.CacheStats DbEnv_memp_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_memp_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.CacheFileStats[] DbEnv_memp_fstat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_memp_sync(long jarg1, DbEnv jarg1_, com.sleepycat.db.LogSequenceNumber jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_memp_trickle(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; @@ -288,14 +304,17 @@ class db_javaJNI { public final static native void DbEnv_mutex_set_max(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_mutex_set_tas_spins(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.MutexStats DbEnv_mutex_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_mutex_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_get_tx_max(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_get_tx_timestamp(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_get_timeout(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_txn_applied(long jarg1, DbEnv jarg1_, byte[] jarg2, int jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_txn_begin(long jarg1, DbEnv jarg1_, long jarg2, DbTxn jarg2_, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_txn_checkpoint(long jarg1, DbEnv jarg1_, int jarg2, int jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.PreparedTransaction[] DbEnv_txn_recover(long jarg1, DbEnv jarg1_, long jarg2, long jarg3) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.TransactionStats DbEnv_txn_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_txn_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_rep_get_limit(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_rep_elect(long jarg1, DbEnv jarg1_, int jarg2, int jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_process_message(long jarg1, DbEnv jarg1_, com.sleepycat.db.DatabaseEntry jarg2, com.sleepycat.db.DatabaseEntry jarg3, int jarg4, com.sleepycat.db.LogSequenceNumber jarg5) /* no exception */; @@ -308,12 +327,14 @@ class db_javaJNI { public final static native void DbEnv_rep_sync(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native boolean DbEnv_rep_get_config(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.ReplicationStats DbEnv_rep_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_rep_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_rep_set_limit(long jarg1, DbEnv jarg1_, long jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_get_request_min(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_get_request_max(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_repmgr_channel(long jarg1, DbEnv jarg1_, int jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_rep_set_request(long jarg1, DbEnv jarg1_, int jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_rep_set_transport(long jarg1, DbEnv jarg1_, int jarg2, boolean jarg3) throws com.sleepycat.db.DatabaseException; + public final static native void DbEnv_rep_set_view(long jarg1, DbEnv jarg1_, boolean jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_get_nsites(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_get_priority(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_rep_get_timeout(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; @@ -321,14 +342,17 @@ class db_javaJNI { public final static native void DbEnv_rep_set_priority(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_rep_set_timeout(long jarg1, DbEnv jarg1_, int jarg2, long jarg3) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_repmgr_get_ack_policy(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; + public final static native long DbEnv_repmgr_get_incoming_queue_max(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_repmgr_local_site(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_repmgr_set_ack_policy(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native void DbEnv_repmgr_set_incoming_queue_max(long jarg1, DbEnv jarg1_, long jarg2) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_repmgr_site(long jarg1, DbEnv jarg1_, String jarg2, long jarg3) throws com.sleepycat.db.DatabaseException; public final static native long DbEnv_repmgr_site_by_eid(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_repmgr_set_dispatch(long jarg1, DbEnv jarg1_, boolean jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.ReplicationManagerSiteInfo[] DbEnv_repmgr_site_list(long jarg1, DbEnv jarg1_) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_repmgr_start(long jarg1, DbEnv jarg1_, int jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.ReplicationManagerStats DbEnv_repmgr_stat(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbEnv_repmgr_stat_print(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbEnv_get_backup_config(long jarg1, DbEnv jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_backup(long jarg1, DbEnv jarg1_, String jarg2, int jarg3) throws com.sleepycat.db.DatabaseException; public final static native void DbEnv_dbbackup(long jarg1, DbEnv jarg1_, String jarg2, String jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; @@ -368,12 +392,17 @@ class db_javaJNI { public final static native void DbSequence_set_flags(long jarg1, DbSequence jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native void DbSequence_set_range(long jarg1, DbSequence jarg1_, long jarg2, long jarg3) throws com.sleepycat.db.DatabaseException; public final static native com.sleepycat.db.SequenceStats DbSequence_stat(long jarg1, DbSequence jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbSequence_stat_print(long jarg1, DbSequence jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; /* package */ final static native void DbSite_close0(long jarg1, DbSite jarg1_); public final static native com.sleepycat.db.ReplicationHostAddress DbSite_get_address(long jarg1, DbSite jarg1_) throws com.sleepycat.db.DatabaseException; public final static native boolean DbSite_get_config(long jarg1, DbSite jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; public final static native int DbSite_get_eid(long jarg1, DbSite jarg1_) throws com.sleepycat.db.DatabaseException; /* package */ final static native void DbSite_remove0(long jarg1, DbSite jarg1_); public final static native void DbSite_set_config(long jarg1, DbSite jarg1_, int jarg2, boolean jarg3) throws com.sleepycat.db.DatabaseException; + /* package */ final static native void DbStream_close0(long jarg1, DbStream jarg1_, int jarg2); + public final static native int DbStream_read(long jarg1, DbStream jarg1_, com.sleepycat.db.DatabaseEntry jarg2, long jarg3, int jarg4, int jarg5) throws com.sleepycat.db.DatabaseException; + public final static native long DbStream_size(long jarg1, DbStream jarg1_, int jarg2) throws com.sleepycat.db.DatabaseException; + public final static native int DbStream_write(long jarg1, DbStream jarg1_, com.sleepycat.db.DatabaseEntry jarg2, long jarg3, int jarg4) throws com.sleepycat.db.DatabaseException; /* package */ final static native void DbTxn_abort0(long jarg1, DbTxn jarg1_); /* package */ final static native void DbTxn_discard0(long jarg1, DbTxn jarg1_, int jarg2); public final static native String DbTxn_get_name(long jarg1, DbTxn jarg1_) throws com.sleepycat.db.DatabaseException; |
