diff options
Diffstat (limited to 'lang/java/src/com/sleepycat/db/internal/DbEnv.java')
| -rw-r--r-- | lang/java/src/com/sleepycat/db/internal/DbEnv.java | 75 |
1 files changed, 71 insertions, 4 deletions
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); } |
