1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.4
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.sleepycat.db.internal;
10 
11 import com.sleepycat.db.*;
12 import java.util.Comparator;
13 
14 public class DbEnv {
15   private long swigCPtr;
16   protected boolean swigCMemOwn;
17 
DbEnv(long cPtr, boolean cMemoryOwn)18   protected DbEnv(long cPtr, boolean cMemoryOwn) {
19     swigCMemOwn = cMemoryOwn;
20     swigCPtr = cPtr;
21   }
22 
getCPtr(DbEnv obj)23   protected static long getCPtr(DbEnv obj) {
24     return (obj == null) ? 0 : obj.swigCPtr;
25   }
26 
delete()27   /* package */ synchronized void delete() {
28     if (swigCPtr != 0) {
29       if (swigCMemOwn) {
30         swigCMemOwn = false;
31         throw new UnsupportedOperationException("C++ destructor does not have public access");
32       }
33       swigCPtr = 0;
34     }
35   }
36 
37 	/* package */ static final int GIGABYTE = 1 << 30;
38 	/*
39 	 * Internally, the JNI layer creates a global reference to each DbEnv,
40 	 * which can potentially be different to this.  We keep a copy here so
41 	 * we can clean up after destructors.
42 	 */
43 	private long dbenv_ref;
44 	public Environment wrapper;
45 
46 	private LogRecordHandler app_dispatch_handler;
47 	private EventHandler event_notify_handler;
48 	private FeedbackHandler env_feedback_handler;
49 	private ErrorHandler error_handler;
50 	private String errpfx;
51 	private MessageHandler message_handler;
52 	private PanicHandler panic_handler;
53 	private ReplicationManagerMessageDispatch repmgr_msg_dispatch_handler;
54 	private ReplicationTransport rep_transport_handler;
55 	private java.io.OutputStream error_stream;
56 	private java.io.OutputStream message_stream;
57 	private ThreadLocal errBuf;
58 	/*
59 	 * Because of how SWIG creates things, we need 3 separate objects here.
60 	 * We will only ever use backup_open_handler, however.
61 	 */
62 	private BackupHandler backup_close_handler;
63 	private BackupHandler backup_open_handler;
64 	private BackupHandler backup_write_handler;
65 	public static class RepProcessMessage {
66 		public int envid;
67 	}
68 
69 	/*
70 	 * Called by the public DbEnv constructor and for private environments
71 	 * by the Db constructor.
72 	 */
initialize()73 	void initialize() {
74 		dbenv_ref = db_java.initDbEnvRef0(this, this);
75 		errBuf = new ThreadLocal();
76 		/* Start with System.err as the default error stream. */
77 		set_error_stream(System.err);
78 		set_message_stream(System.out);
79 	}
80 
cleanup()81 	void cleanup() {
82 		swigCPtr = 0;
83 		db_java.deleteRef0(dbenv_ref);
84 		dbenv_ref = 0L;
85 	}
86 
close(int flags)87 	public synchronized void close(int flags) throws DatabaseException {
88 		try {
89 			close0(flags);
90 		} finally {
91 			cleanup();
92 		}
93 	}
94 
handle_app_dispatch(DatabaseEntry dbt, LogSequenceNumber lsn, int recops)95 	private final int handle_app_dispatch(DatabaseEntry dbt,
96 					      LogSequenceNumber lsn,
97 					      int recops) {
98 		return app_dispatch_handler.handleLogRecord(wrapper, dbt, lsn,
99 		    RecoveryOperation.fromFlag(recops));
100 	}
101 
get_app_dispatch()102 	public LogRecordHandler get_app_dispatch() throws com.sleepycat.db.DatabaseException {
103 		return app_dispatch_handler;
104 	}
105 
handle_panic_event_notify()106 	private final void handle_panic_event_notify() {
107 		event_notify_handler.handlePanicEvent();
108 	}
109 
handle_rep_client_event_notify()110 	private final void handle_rep_client_event_notify() {
111 		event_notify_handler.handleRepClientEvent();
112 	}
113 
handle_rep_connect_broken_event_notify()114 	private final void handle_rep_connect_broken_event_notify() {
115 		event_notify_handler.handleRepConnectBrokenEvent();
116 	}
117 
handle_rep_connect_established_event_notify()118 	private final void handle_rep_connect_established_event_notify() {
119 		event_notify_handler.handleRepConnectEstablishedEvent();
120 	}
121 
handle_rep_connect_try_failed_event_notify()122 	private final void handle_rep_connect_try_failed_event_notify() {
123 		event_notify_handler.handleRepConnectTryFailedEvent();
124 	}
125 
handle_rep_dupmaster_event_notify()126 	private final void handle_rep_dupmaster_event_notify() {
127 		event_notify_handler.handleRepDupmasterEvent();
128 	}
129 
handle_rep_elected_event_notify()130 	private final void handle_rep_elected_event_notify() {
131 		event_notify_handler.handleRepElectedEvent();
132 	}
133 
handle_rep_election_failed_event_notify()134 	private final void handle_rep_election_failed_event_notify() {
135 		event_notify_handler.handleRepElectionFailedEvent();
136 	}
137 
handle_rep_init_done_event_notify()138         private final void handle_rep_init_done_event_notify() {
139                 event_notify_handler.handleRepInitDoneEvent();
140         }
141 
handle_rep_join_failure_event_notify()142 	private final void handle_rep_join_failure_event_notify() {
143 		event_notify_handler.handleRepJoinFailureEvent();
144 	}
145 
handle_rep_local_site_removed_event_notify()146 	private final void handle_rep_local_site_removed_event_notify() {
147 		event_notify_handler.handleRepLocalSiteRemovedEvent();
148 	}
149 
handle_rep_master_event_notify()150 	private final void handle_rep_master_event_notify() {
151 		event_notify_handler.handleRepMasterEvent();
152 	}
153 
handle_rep_master_failure_event_notify()154 	private final void handle_rep_master_failure_event_notify() {
155 		event_notify_handler.handleRepMasterFailureEvent();
156 	}
157 
handle_rep_new_master_event_notify(int envid)158 	private final void handle_rep_new_master_event_notify(int envid) {
159 		event_notify_handler.handleRepNewMasterEvent(envid);
160 	}
161 
handle_rep_perm_failed_event_notify()162 	private final void handle_rep_perm_failed_event_notify() {
163 		event_notify_handler.handleRepPermFailedEvent();
164 	}
165 
handle_rep_site_added_event_notify()166 	private final void handle_rep_site_added_event_notify() {
167 		event_notify_handler.handleRepSiteAddedEvent();
168 	}
169 
handle_rep_site_removed_event_notify()170 	private final void handle_rep_site_removed_event_notify() {
171 		event_notify_handler.handleRepSiteRemovedEvent();
172 	}
173 
handle_rep_startup_done_event_notify()174 	private final void handle_rep_startup_done_event_notify() {
175 		event_notify_handler.handleRepStartupDoneEvent();
176 	}
177 
handle_write_failed_event_notify(int errno)178 	private final void handle_write_failed_event_notify(int errno) {
179 		event_notify_handler.handleWriteFailedEvent(errno);
180 	}
181 
get_event_notify()182 	public EventHandler get_event_notify() throws com.sleepycat.db.DatabaseException {
183 		return event_notify_handler;
184 	}
185 
handle_env_feedback(int opcode, int percent)186 	private final void handle_env_feedback(int opcode, int percent) {
187 		if (opcode == DbConstants.DB_RECOVER)
188 			env_feedback_handler.recoveryFeedback(wrapper, percent);
189 		/* No other environment feedback type supported. */
190 	}
191 
get_feedback()192 	public FeedbackHandler get_feedback() throws com.sleepycat.db.DatabaseException {
193 		return env_feedback_handler;
194 	}
195 
set_errpfx(String errpfx)196 	public void set_errpfx(String errpfx) /* no exception */ {
197 		this.errpfx = errpfx;
198 	}
199 
get_errpfx()200 	public String get_errpfx() /* no exception */ {
201 		return errpfx;
202 	}
203 
handle_error(String msg)204 	private final void handle_error(String msg) {
205 		com.sleepycat.util.ErrorBuffer ebuf = (com.sleepycat.util.ErrorBuffer)errBuf.get();
206 		if (ebuf == null) {
207 			/*
208 			 * Populate the errBuf ThreadLocal on demand, since the
209 			 * callback can be made from different threads.
210 			 */
211 			ebuf = new com.sleepycat.util.ErrorBuffer(3);
212 			errBuf.set(ebuf);
213 		}
214 		ebuf.append(msg);
215 		error_handler.error(wrapper, this.errpfx, msg);
216 	}
217 
get_err_msg(String orig_msg)218 	private final String get_err_msg(String orig_msg) {
219 		com.sleepycat.util.ErrorBuffer ebuf = (com.sleepycat.util.ErrorBuffer)errBuf.get();
220 		String ret = null;
221 		if (ebuf != null) {
222 			ret = ebuf.get();
223 			ebuf.clear();
224 		}
225 		if (ret != null && ret.length() > 0)
226 			return orig_msg + ": " + ret;
227 		return orig_msg;
228 	}
229 
get_errcall()230 	public ErrorHandler get_errcall() /* no exception */ {
231 		return error_handler;
232 	}
233 
handle_message(String msg)234 	private final void handle_message(String msg) {
235 		message_handler.message(wrapper, msg);
236 	}
237 
handle_repmgr_message_dispatch(ReplicationChannel chan, DatabaseEntry[] msgs, int flags)238 	private final void handle_repmgr_message_dispatch(ReplicationChannel chan, DatabaseEntry[] msgs, int flags)
239 	    throws DatabaseException {
240 	        java.util.List l = java.util.Arrays.asList(msgs);
241 	        java.util.Set msgSet = new java.util.HashSet(l);
242 	        boolean need_response = flags == DbConstants.DB_REPMGR_NEED_RESPONSE;
243 		repmgr_msg_dispatch_handler.dispatch(chan, msgSet, need_response);
244 	}
245 
get_msgcall()246 	public MessageHandler get_msgcall() /* no exception */ {
247 		return message_handler;
248 	}
249 
handle_panic(DatabaseException e)250 	private final void handle_panic(DatabaseException e) {
251 		panic_handler.panic(wrapper, e);
252 	}
253 
get_paniccall()254 	public PanicHandler get_paniccall() throws com.sleepycat.db.DatabaseException {
255 		return panic_handler;
256 	}
257 
handle_rep_transport(DatabaseEntry control, DatabaseEntry rec, LogSequenceNumber lsn, int envid, int flags)258 	private final int handle_rep_transport(DatabaseEntry control,
259 					       DatabaseEntry rec,
260 					       LogSequenceNumber lsn,
261 					       int envid, int flags)
262 	    throws DatabaseException {
263 		return rep_transport_handler.send(wrapper,
264 		    control, rec, lsn, envid,
265 		    (flags & DbConstants.DB_REP_NOBUFFER) != 0,
266 		    (flags & DbConstants.DB_REP_PERMANENT) != 0,
267 		    (flags & DbConstants.DB_REP_ANYWHERE) != 0,
268 		    (flags & DbConstants.DB_REP_REREQUEST) != 0);
269 	}
270 
lock_vec( int locker, int flags, LockRequest[] list, int offset, int count)271 	public void lock_vec(/*u_int32_t*/ int locker, int flags,
272 			     LockRequest[] list, int offset, int count)
273 	    throws DatabaseException {
274 		db_javaJNI.DbEnv_lock_vec(swigCPtr, this, locker, flags, list,
275 		    offset, count);
276 	}
277 
remove(String db_home, int flags)278 	public synchronized void remove(String db_home, int flags)
279 	    throws DatabaseException, java.io.FileNotFoundException {
280 		try {
281 			remove0(db_home, flags);
282 		} finally {
283 			cleanup();
284 		}
285 	}
286 
set_error_stream(java.io.OutputStream stream)287 	public void set_error_stream(java.io.OutputStream stream) /* no exception */ {
288 		error_stream = stream;
289 		final java.io.PrintWriter pw = new java.io.PrintWriter(stream);
290 		set_errcall(new ErrorHandler() {
291 			public void error(Environment env,
292 			    String prefix, String buf) /* no exception */ {
293 				if (prefix != null)
294 					pw.print(prefix + ": ");
295 				pw.println(buf);
296 				pw.flush();
297 			}
298 		});
299 	}
300 
get_error_stream()301 	public java.io.OutputStream get_error_stream() /* no exception */ {
302 		return error_stream;
303 	}
304 
set_message_stream(java.io.OutputStream stream)305 	public void set_message_stream(java.io.OutputStream stream) /* no exception */ {
306 		message_stream = stream;
307 		final java.io.PrintWriter pw = new java.io.PrintWriter(stream);
308 		set_msgcall(new MessageHandler() {
309 			public void message(Environment env, String msg) /* no exception */
310 			    /* no exception */ {
311 				pw.println(msg);
312 				pw.flush();
313 			}
314 		});
315 	}
316 
get_message_stream()317 	public java.io.OutputStream get_message_stream() /* no exception */ {
318 		return message_stream;
319 	}
320 
set_tx_timestamp(java.util.Date timestamp)321 	public void set_tx_timestamp(java.util.Date timestamp) throws com.sleepycat.db.DatabaseException {
322 		set_tx_timestamp0(timestamp.getTime()/1000);
323 	}
324 
325 	/*
326 	 * See comment at top explaining why backup_open_handler is used
327 	 * for all 3 backup callbacks.
328 	 */
get_backup_handler()329 	public BackupHandler get_backup_handler() throws com.sleepycat.db.DatabaseException {
330 		return backup_open_handler;
331 	}
332 
handle_backup_close(String dbname)333 	private final int handle_backup_close(String dbname) {
334 		return backup_open_handler.close(dbname);
335 	}
336 
handle_backup_open(String dbname, String target)337 	private final int handle_backup_open(String dbname, String target) {
338 		return backup_open_handler.open(target, dbname);
339 	}
340 
handle_backup_write(int file_pos_gbytes, int file_pos_bytes, int len, byte[] buf)341 	private final int handle_backup_write(int file_pos_gbytes, int file_pos_bytes, int len, byte[] buf) {
342 		/*
343 		 * Offset in buf is always 0.  We include it anyways to match
344 		 * the OutputStream.write() signature.
345 		 */
346 		long file_pos = file_pos_gbytes * GIGABYTE + file_pos_bytes;
347 		return backup_open_handler.write(file_pos, buf, 0, len);
348 	}
349 
DbEnv(int flags)350   public DbEnv(int flags) throws com.sleepycat.db.DatabaseException {
351     this(db_javaJNI.new_DbEnv(flags), true);
352     initialize();
353   }
354 
close0(int flags)355   /* package */ void close0(int flags) { db_javaJNI.DbEnv_close0(swigCPtr, this, flags); }
356 
dbremove(DbTxn txnid, String file, String database, int flags)357   public void dbremove(DbTxn txnid, String file, String database, int flags) throws com.sleepycat.db.DatabaseException, java.io.FileNotFoundException { db_javaJNI.DbEnv_dbremove(swigCPtr, this, DbTxn.getCPtr(txnid), txnid, file, database, flags); }
358 
dbrename(DbTxn txnid, String file, String database, String newname, int flags)359   public void dbrename(DbTxn txnid, String file, String database, String newname, int flags) throws com.sleepycat.db.DatabaseException, java.io.FileNotFoundException { db_javaJNI.DbEnv_dbrename(swigCPtr, this, DbTxn.getCPtr(txnid), txnid, file, database, newname, flags); }
360 
err(int ret, String message)361   public void err(int ret, String message) /* no exception */ {
362     db_javaJNI.DbEnv_err(swigCPtr, this, ret, message);
363   }
364 
errx(String message)365   public void errx(String message) /* no exception */ {
366     db_javaJNI.DbEnv_errx(swigCPtr, this, message);
367   }
368 
cdsgroup_begin()369   public DbTxn cdsgroup_begin() throws com.sleepycat.db.DatabaseException {
370     long cPtr = db_javaJNI.DbEnv_cdsgroup_begin(swigCPtr, this);
371     return (cPtr == 0) ? null : new DbTxn(cPtr, false);
372   }
373 
fileid_reset(String file, int flags)374   public void fileid_reset(String file, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_fileid_reset(swigCPtr, this, file, flags); }
375 
get_data_dirs()376   public String[] get_data_dirs() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_data_dirs(swigCPtr, this); }
377 
get_encrypt_flags()378   public int get_encrypt_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_encrypt_flags(swigCPtr, this); }
379 
get_flags()380   public int get_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_flags(swigCPtr, this); }
381 
get_home()382   public String get_home() throws com.sleepycat.db.DatabaseException {
383     return db_javaJNI.DbEnv_get_home(swigCPtr, this);
384   }
385 
get_intermediate_dir_mode()386   public String get_intermediate_dir_mode() throws com.sleepycat.db.DatabaseException {
387     return db_javaJNI.DbEnv_get_intermediate_dir_mode(swigCPtr, this);
388   }
389 
get_open_flags()390   public int get_open_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_open_flags(swigCPtr, this); }
391 
get_metadata_dir()392   public String get_metadata_dir() throws com.sleepycat.db.DatabaseException {
393     return db_javaJNI.DbEnv_get_metadata_dir(swigCPtr, this);
394   }
395 
get_shm_key()396   public long get_shm_key() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_shm_key(swigCPtr, this); }
397 
get_tmp_dir()398   public String get_tmp_dir() throws com.sleepycat.db.DatabaseException {
399     return db_javaJNI.DbEnv_get_tmp_dir(swigCPtr, this);
400   }
401 
get_verbose(int which)402   public boolean get_verbose(int which) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_verbose(swigCPtr, this, which); }
403 
is_bigendian()404   public boolean is_bigendian() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_is_bigendian(swigCPtr, this); }
405 
lsn_reset(String file, int flags)406   public void lsn_reset(String file, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_lsn_reset(swigCPtr, this, file, flags); }
407 
open(String db_home, int flags, int mode)408   public void open(String db_home, int flags, int mode) throws com.sleepycat.db.DatabaseException, java.io.FileNotFoundException { db_javaJNI.DbEnv_open(swigCPtr, this, db_home, flags, mode); }
409 
remove0(String db_home, int flags)410   /* package */ void remove0(String db_home, int flags) { db_javaJNI.DbEnv_remove0(swigCPtr, this, db_home, flags); }
411 
set_cachesize(long bytes, int ncache)412   public void set_cachesize(long bytes, int ncache) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_cachesize(swigCPtr, this, bytes, ncache); }
413 
set_cache_max(long bytes)414   public void set_cache_max(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_cache_max(swigCPtr, this, bytes); }
415 
set_create_dir(String dir)416   public void set_create_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_create_dir(swigCPtr, this, dir); }
417 
add_data_dir(String dir)418   public void add_data_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_add_data_dir(swigCPtr, this, dir); }
419 
set_intermediate_dir_mode(String mode)420   public void set_intermediate_dir_mode(String mode) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_intermediate_dir_mode(swigCPtr, this, mode); }
421 
set_encrypt(String passwd, int flags)422   public void set_encrypt(String passwd, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_encrypt(swigCPtr, this, passwd, flags); }
423 
set_errcall(com.sleepycat.db.ErrorHandler db_errcall_fcn)424   public void set_errcall(com.sleepycat.db.ErrorHandler db_errcall_fcn) /* no exception */ {
425     db_javaJNI.DbEnv_set_errcall(swigCPtr, this,  (error_handler = db_errcall_fcn) != null );
426   }
427 
set_flags(int flags, boolean onoff)428   public void set_flags(int flags, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_flags(swigCPtr, this, flags, onoff); }
429 
set_feedback(com.sleepycat.db.FeedbackHandler env_feedback_fcn)430   public void set_feedback(com.sleepycat.db.FeedbackHandler env_feedback_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_feedback(swigCPtr, this,  (env_feedback_handler = env_feedback_fcn) != null ); }
431 
set_metadata_dir(String dir)432   public void set_metadata_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_metadata_dir(swigCPtr, this, dir); }
433 
set_mp_max_openfd(int maxopenfd)434   public void set_mp_max_openfd(int maxopenfd) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_mp_max_openfd(swigCPtr, this, maxopenfd); }
435 
set_mp_max_write(int maxwrite, long maxwrite_sleep)436   public void set_mp_max_write(int maxwrite, long maxwrite_sleep) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_mp_max_write(swigCPtr, this, maxwrite, maxwrite_sleep); }
437 
set_mp_mmapsize(long mp_mmapsize)438   public void set_mp_mmapsize(long mp_mmapsize) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_mp_mmapsize(swigCPtr, this, mp_mmapsize); }
439 
set_mp_pagesize(int mp_pagesize)440   public void set_mp_pagesize(int mp_pagesize) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_mp_pagesize(swigCPtr, this, mp_pagesize); }
441 
set_mp_tablesize(int mp_tablesize)442   public void set_mp_tablesize(int mp_tablesize) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_mp_tablesize(swigCPtr, this, mp_tablesize); }
443 
set_msgcall(com.sleepycat.db.MessageHandler db_msgcall_fcn)444   public void set_msgcall(com.sleepycat.db.MessageHandler db_msgcall_fcn) /* no exception */ {
445     db_javaJNI.DbEnv_set_msgcall(swigCPtr, this,  (message_handler = db_msgcall_fcn) != null );
446   }
447 
set_paniccall(com.sleepycat.db.PanicHandler db_panic_fcn)448   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 ); }
449 
set_shm_key(long shm_key)450   public void set_shm_key(long shm_key) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_shm_key(swigCPtr, this, shm_key); }
451 
set_timeout(long timeout, int flags)452   public void set_timeout(long timeout, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_timeout(swigCPtr, this, timeout, flags); }
453 
set_tmp_dir(String dir)454   public void set_tmp_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_tmp_dir(swigCPtr, this, dir); }
455 
set_tx_max(int max)456   public void set_tx_max(int max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_tx_max(swigCPtr, this, max); }
457 
set_app_dispatch(com.sleepycat.db.LogRecordHandler tx_recover)458   public void set_app_dispatch(com.sleepycat.db.LogRecordHandler tx_recover) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_app_dispatch(swigCPtr, this,  (app_dispatch_handler = tx_recover) != null ); }
459 
set_event_notify(com.sleepycat.db.EventHandler event_notify)460   public void set_event_notify(com.sleepycat.db.EventHandler event_notify) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_event_notify(swigCPtr, this,  (event_notify_handler = event_notify) != null ); }
461 
set_tx_timestamp0(long timestamp)462   /* package */ void set_tx_timestamp0(long timestamp) { db_javaJNI.DbEnv_set_tx_timestamp0(swigCPtr, this, timestamp); }
463 
set_verbose(int which, boolean onoff)464   public void set_verbose(int which, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_verbose(swigCPtr, this, which, onoff); }
465 
get_lk_conflicts()466   public byte[][] get_lk_conflicts() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_conflicts(swigCPtr, this); }
467 
get_lk_detect()468   public int get_lk_detect() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_detect(swigCPtr, this); }
469 
get_lk_max_locks()470   public int get_lk_max_locks() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_max_locks(swigCPtr, this); }
471 
get_lk_max_lockers()472   public int get_lk_max_lockers() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_max_lockers(swigCPtr, this); }
473 
get_lk_max_objects()474   public int get_lk_max_objects() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_max_objects(swigCPtr, this); }
475 
get_lk_partitions()476   public int get_lk_partitions() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_partitions(swigCPtr, this); }
477 
get_lk_priority(int lockerid)478   public int get_lk_priority(int lockerid) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_priority(swigCPtr, this, lockerid); }
479 
get_lk_tablesize()480   public int get_lk_tablesize() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lk_tablesize(swigCPtr, this); }
481 
get_memory_init(int config_type)482   public int get_memory_init(int config_type) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_memory_init(swigCPtr, this, config_type); }
483 
get_memory_max()484   public long get_memory_max() throws com.sleepycat.db.DatabaseException {
485     return db_javaJNI.DbEnv_get_memory_max(swigCPtr, this);
486   }
487 
lock_detect(int flags, int atype)488   public int lock_detect(int flags, int atype) throws com.sleepycat.db.DatabaseException {
489     return db_javaJNI.DbEnv_lock_detect(swigCPtr, this, flags, atype);
490   }
491 
lock_get(int locker, int flags, com.sleepycat.db.DatabaseEntry object, int lock_mode)492   public DbLock lock_get(int locker, int flags, com.sleepycat.db.DatabaseEntry object, int lock_mode) throws com.sleepycat.db.DatabaseException {
493     long cPtr = db_javaJNI.DbEnv_lock_get(swigCPtr, this, locker, flags, object, lock_mode);
494     return (cPtr == 0) ? null : new DbLock(cPtr, true);
495   }
496 
lock_id()497   public int lock_id() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_lock_id(swigCPtr, this); }
498 
lock_id_free(int id)499   public void lock_id_free(int id) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_lock_id_free(swigCPtr, this, id); }
500 
lock_put(DbLock lock)501   public void lock_put(DbLock lock) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_lock_put(swigCPtr, this, DbLock.getCPtr(lock), lock); }
502 
lock_stat(int flags)503   public com.sleepycat.db.LockStats lock_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_lock_stat(swigCPtr, this, flags); }
504 
set_lk_conflicts(byte[][] conflicts)505   public void set_lk_conflicts(byte[][] conflicts) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_conflicts(swigCPtr, this, conflicts); }
506 
set_lk_detect(int detect)507   public void set_lk_detect(int detect) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_detect(swigCPtr, this, detect); }
508 
set_lk_max_lockers(int max)509   public void set_lk_max_lockers(int max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_max_lockers(swigCPtr, this, max); }
510 
set_lk_max_locks(int max)511   public void set_lk_max_locks(int max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_max_locks(swigCPtr, this, max); }
512 
set_lk_max_objects(int max)513   public void set_lk_max_objects(int max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_max_objects(swigCPtr, this, max); }
514 
set_lk_partitions(int partitions)515   public void set_lk_partitions(int partitions) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_partitions(swigCPtr, this, partitions); }
516 
set_lk_priority(int lockerid, int priority)517   public void set_lk_priority(int lockerid, int priority) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_priority(swigCPtr, this, lockerid, priority); }
518 
set_lk_tablesize(int size)519   public void set_lk_tablesize(int size) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lk_tablesize(swigCPtr, this, size); }
520 
set_memory_init(int config_type, int value)521   public void set_memory_init(int config_type, int value) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_memory_init(swigCPtr, this, config_type, value); }
522 
set_memory_max(long bytes)523   public void set_memory_max(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_memory_max(swigCPtr, this, bytes); }
524 
get_lg_bsize()525   public int get_lg_bsize() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lg_bsize(swigCPtr, this); }
526 
get_lg_dir()527   public String get_lg_dir() throws com.sleepycat.db.DatabaseException {
528     return db_javaJNI.DbEnv_get_lg_dir(swigCPtr, this);
529   }
530 
get_lg_filemode()531   public int get_lg_filemode() throws com.sleepycat.db.DatabaseException {
532     return db_javaJNI.DbEnv_get_lg_filemode(swigCPtr, this);
533   }
534 
get_lg_max()535   public int get_lg_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lg_max(swigCPtr, this); }
536 
get_lg_regionmax()537   public int get_lg_regionmax() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_lg_regionmax(swigCPtr, this); }
538 
log_archive(int flags)539   public String[] log_archive(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_log_archive(swigCPtr, this, flags); }
540 
log_compare(com.sleepycat.db.LogSequenceNumber lsn0, com.sleepycat.db.LogSequenceNumber lsn1)541   public static int log_compare(com.sleepycat.db.LogSequenceNumber lsn0, com.sleepycat.db.LogSequenceNumber lsn1) /* no exception */ {
542     return db_javaJNI.DbEnv_log_compare(lsn0, lsn1);
543   }
544 
log_cursor(int flags)545   public DbLogc log_cursor(int flags) throws com.sleepycat.db.DatabaseException {
546     long cPtr = db_javaJNI.DbEnv_log_cursor(swigCPtr, this, flags);
547     return (cPtr == 0) ? null : new DbLogc(cPtr, true);
548   }
549 
log_file(com.sleepycat.db.LogSequenceNumber lsn)550   public String log_file(com.sleepycat.db.LogSequenceNumber lsn) throws com.sleepycat.db.DatabaseException {
551     return db_javaJNI.DbEnv_log_file(swigCPtr, this, lsn);
552   }
553 
log_flush(com.sleepycat.db.LogSequenceNumber lsn_or_null)554   public void log_flush(com.sleepycat.db.LogSequenceNumber lsn_or_null) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_log_flush(swigCPtr, this, lsn_or_null); }
555 
log_get_config(int which)556   public boolean log_get_config(int which) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_log_get_config(swigCPtr, this, which); }
557 
log_put(com.sleepycat.db.LogSequenceNumber lsn, com.sleepycat.db.DatabaseEntry data, int flags)558   public void log_put(com.sleepycat.db.LogSequenceNumber lsn, com.sleepycat.db.DatabaseEntry data, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_log_put(swigCPtr, this, lsn, data, flags); }
559 
log_print(DbTxn txn, String msg)560   public void log_print(DbTxn txn, String msg) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_log_print(swigCPtr, this, DbTxn.getCPtr(txn), txn, msg); }
561 
log_set_config(int which, boolean onoff)562   public void log_set_config(int which, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_log_set_config(swigCPtr, this, which, onoff); }
563 
log_stat(int flags)564   public com.sleepycat.db.LogStats log_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_log_stat(swigCPtr, this, flags); }
565 
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)566   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 {
567     return db_javaJNI.DbEnv_log_verify(swigCPtr, this, envhome, cachesz, dbfile, dbname, stime, etime, stfile, stoffset, efile, eoffset, caf, verbose);
568   }
569 
set_lg_bsize(int lg_bsize)570   public void set_lg_bsize(int lg_bsize) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lg_bsize(swigCPtr, this, lg_bsize); }
571 
set_lg_dir(String dir)572   public void set_lg_dir(String dir) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lg_dir(swigCPtr, this, dir); }
573 
set_lg_filemode(int mode)574   public void set_lg_filemode(int mode) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lg_filemode(swigCPtr, this, mode); }
575 
set_lg_max(int lg_max)576   public void set_lg_max(int lg_max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lg_max(swigCPtr, this, lg_max); }
577 
set_lg_regionmax(int lg_regionmax)578   public void set_lg_regionmax(int lg_regionmax) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_lg_regionmax(swigCPtr, this, lg_regionmax); }
579 
get_cachesize()580   public long get_cachesize() throws com.sleepycat.db.DatabaseException {
581     return db_javaJNI.DbEnv_get_cachesize(swigCPtr, this);
582   }
583 
get_cachesize_ncache()584   public int get_cachesize_ncache() throws com.sleepycat.db.DatabaseException {
585     return db_javaJNI.DbEnv_get_cachesize_ncache(swigCPtr, this);
586   }
587 
get_cache_max()588   public long get_cache_max() throws com.sleepycat.db.DatabaseException {
589     return db_javaJNI.DbEnv_get_cache_max(swigCPtr, this);
590   }
591 
get_create_dir()592   public String get_create_dir() throws com.sleepycat.db.DatabaseException {
593     return db_javaJNI.DbEnv_get_create_dir(swigCPtr, this);
594   }
595 
get_mp_max_openfd()596   public int get_mp_max_openfd() throws com.sleepycat.db.DatabaseException {
597     return db_javaJNI.DbEnv_get_mp_max_openfd(swigCPtr, this);
598   }
599 
get_mp_max_write()600   public int get_mp_max_write() throws com.sleepycat.db.DatabaseException {
601     return db_javaJNI.DbEnv_get_mp_max_write(swigCPtr, this);
602   }
603 
get_mp_max_write_sleep()604   public long get_mp_max_write_sleep() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_mp_max_write_sleep(swigCPtr, this); }
605 
get_mp_mmapsize()606   public long get_mp_mmapsize() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_mp_mmapsize(swigCPtr, this); }
607 
get_mp_pagesize()608   public int get_mp_pagesize() throws com.sleepycat.db.DatabaseException {
609     return db_javaJNI.DbEnv_get_mp_pagesize(swigCPtr, this);
610   }
611 
get_mp_tablesize()612   public int get_mp_tablesize() throws com.sleepycat.db.DatabaseException {
613     return db_javaJNI.DbEnv_get_mp_tablesize(swigCPtr, this);
614   }
615 
memp_stat(int flags)616   public com.sleepycat.db.CacheStats memp_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_memp_stat(swigCPtr, this, flags); }
617 
memp_fstat(int flags)618   public com.sleepycat.db.CacheFileStats[] memp_fstat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_memp_fstat(swigCPtr, this, flags); }
619 
memp_sync(com.sleepycat.db.LogSequenceNumber lsn_or_null)620   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); }
621 
memp_trickle(int percent)622   public int memp_trickle(int percent) throws com.sleepycat.db.DatabaseException {
623     return db_javaJNI.DbEnv_memp_trickle(swigCPtr, this, percent);
624   }
625 
mutex_get_align()626   public int mutex_get_align() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_get_align(swigCPtr, this); }
627 
mutex_get_increment()628   public int mutex_get_increment() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_get_increment(swigCPtr, this); }
629 
mutex_get_init()630   public int mutex_get_init() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_get_init(swigCPtr, this); }
631 
mutex_get_max()632   public int mutex_get_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_get_max(swigCPtr, this); }
633 
mutex_get_tas_spins()634   public int mutex_get_tas_spins() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_get_tas_spins(swigCPtr, this); }
635 
mutex_set_align(int align)636   public void mutex_set_align(int align) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_mutex_set_align(swigCPtr, this, align); }
637 
mutex_set_increment(int increment)638   public void mutex_set_increment(int increment) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_mutex_set_increment(swigCPtr, this, increment); }
639 
mutex_set_init(int mutex_init)640   public void mutex_set_init(int mutex_init) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_mutex_set_init(swigCPtr, this, mutex_init); }
641 
mutex_set_max(int mutex_max)642   public void mutex_set_max(int mutex_max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_mutex_set_max(swigCPtr, this, mutex_max); }
643 
mutex_set_tas_spins(int tas_spins)644   public void mutex_set_tas_spins(int tas_spins) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_mutex_set_tas_spins(swigCPtr, this, tas_spins); }
645 
mutex_stat(int flags)646   public com.sleepycat.db.MutexStats mutex_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_mutex_stat(swigCPtr, this, flags); }
647 
get_tx_max()648   public int get_tx_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_tx_max(swigCPtr, this); }
649 
get_tx_timestamp()650   public long get_tx_timestamp() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_tx_timestamp(swigCPtr, this); }
651 
get_timeout(int flag)652   public long get_timeout(int flag) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_timeout(swigCPtr, this, flag); }
653 
txn_applied(byte[] token, int maxwait, int flags)654   public int txn_applied(byte[] token, int maxwait, int flags) throws com.sleepycat.db.DatabaseException {
655     return db_javaJNI.DbEnv_txn_applied(swigCPtr, this, token, maxwait, flags);
656   }
657 
txn_begin(DbTxn parent, int flags)658   public DbTxn txn_begin(DbTxn parent, int flags) throws com.sleepycat.db.DatabaseException {
659     long cPtr = db_javaJNI.DbEnv_txn_begin(swigCPtr, this, DbTxn.getCPtr(parent), parent, flags);
660     return (cPtr == 0) ? null : new DbTxn(cPtr, false);
661   }
662 
txn_checkpoint(int kbyte, int min, int flags)663   public void txn_checkpoint(int kbyte, int min, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_txn_checkpoint(swigCPtr, this, kbyte, min, flags); }
664 
txn_recover(long count, long flags)665   public com.sleepycat.db.PreparedTransaction[] txn_recover(long count, long flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_txn_recover(swigCPtr, this, count, flags); }
666 
txn_stat(int flags)667   public com.sleepycat.db.TransactionStats txn_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_txn_stat(swigCPtr, this, flags); }
668 
rep_get_limit()669   public long rep_get_limit() throws com.sleepycat.db.DatabaseException {
670     return db_javaJNI.DbEnv_rep_get_limit(swigCPtr, this);
671   }
672 
rep_elect(int nsites, int nvotes, int flags)673   public void rep_elect(int nsites, int nvotes, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_elect(swigCPtr, this, nsites, nvotes, flags); }
674 
rep_process_message(com.sleepycat.db.DatabaseEntry control, com.sleepycat.db.DatabaseEntry rec, int envid, com.sleepycat.db.LogSequenceNumber ret_lsn)675   public int rep_process_message(com.sleepycat.db.DatabaseEntry control, com.sleepycat.db.DatabaseEntry rec, int envid, com.sleepycat.db.LogSequenceNumber ret_lsn) /* no exception */ {
676     return db_javaJNI.DbEnv_rep_process_message(swigCPtr, this, control, rec, envid, ret_lsn);
677   }
678 
rep_flush()679   public void rep_flush() throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_flush(swigCPtr, this); }
680 
rep_set_config(int which, boolean onoff)681   public void rep_set_config(int which, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_config(swigCPtr, this, which, onoff); }
682 
rep_set_clockskew(int fast_clock, int slow_clock)683   public void rep_set_clockskew(int fast_clock, int slow_clock) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_clockskew(swigCPtr, this, fast_clock, slow_clock); }
684 
rep_get_clockskew_fast()685   public int rep_get_clockskew_fast() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_clockskew_fast(swigCPtr, this); }
686 
rep_get_clockskew_slow()687   public int rep_get_clockskew_slow() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_clockskew_slow(swigCPtr, this); }
688 
rep_start(com.sleepycat.db.DatabaseEntry cdata, int flags)689   public void rep_start(com.sleepycat.db.DatabaseEntry cdata, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_start(swigCPtr, this, cdata, flags); }
690 
rep_sync(int flags)691   public void rep_sync(int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_sync(swigCPtr, this, flags); }
692 
rep_get_config(int which)693   public boolean rep_get_config(int which) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_config(swigCPtr, this, which); }
694 
rep_stat(int flags)695   public com.sleepycat.db.ReplicationStats rep_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_stat(swigCPtr, this, flags); }
696 
rep_set_limit(long bytes)697   public void rep_set_limit(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_limit(swigCPtr, this, bytes); }
698 
rep_get_request_min()699   public int rep_get_request_min() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_request_min(swigCPtr, this); }
700 
rep_get_request_max()701   public int rep_get_request_max() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_request_max(swigCPtr, this); }
702 
repmgr_channel(int eid, int flags)703   public DbChannel repmgr_channel(int eid, int flags) throws com.sleepycat.db.DatabaseException {
704     long cPtr = db_javaJNI.DbEnv_repmgr_channel(swigCPtr, this, eid, flags);
705     return (cPtr == 0) ? null : new DbChannel(cPtr, false);
706   }
707 
rep_set_request(int min, int max)708   public void rep_set_request(int min, int max) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_request(swigCPtr, this, min, max); }
709 
rep_set_transport(int envid, com.sleepycat.db.ReplicationTransport send)710   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 ); }
711 
rep_get_nsites()712   public int rep_get_nsites() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_nsites(swigCPtr, this); }
713 
rep_get_priority()714   public int rep_get_priority() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_priority(swigCPtr, this); }
715 
rep_get_timeout(int which)716   public int rep_get_timeout(int which) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_rep_get_timeout(swigCPtr, this, which); }
717 
rep_set_nsites(int number)718   public void rep_set_nsites(int number) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_nsites(swigCPtr, this, number); }
719 
rep_set_priority(int priority)720   public void rep_set_priority(int priority) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_priority(swigCPtr, this, priority); }
721 
rep_set_timeout(int which, long timeout)722   public void rep_set_timeout(int which, long timeout) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_rep_set_timeout(swigCPtr, this, which, timeout); }
723 
repmgr_get_ack_policy()724   public int repmgr_get_ack_policy() throws com.sleepycat.db.DatabaseException {
725     return db_javaJNI.DbEnv_repmgr_get_ack_policy(swigCPtr, this);
726   }
727 
repmgr_local_site()728   public DbSite repmgr_local_site() throws com.sleepycat.db.DatabaseException {
729     long cPtr = db_javaJNI.DbEnv_repmgr_local_site(swigCPtr, this);
730     return (cPtr == 0) ? null : new DbSite(cPtr, false);
731   }
732 
repmgr_set_ack_policy(int policy)733   public void repmgr_set_ack_policy(int policy) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_repmgr_set_ack_policy(swigCPtr, this, policy); }
734 
repmgr_site(String host, long port)735   public DbSite repmgr_site(String host, long port) throws com.sleepycat.db.DatabaseException {
736     long cPtr = db_javaJNI.DbEnv_repmgr_site(swigCPtr, this, host, port);
737     return (cPtr == 0) ? null : new DbSite(cPtr, false);
738   }
739 
repmgr_site_by_eid(int eid)740   public DbSite repmgr_site_by_eid(int eid) throws com.sleepycat.db.DatabaseException {
741     long cPtr = db_javaJNI.DbEnv_repmgr_site_by_eid(swigCPtr, this, eid);
742     return (cPtr == 0) ? null : new DbSite(cPtr, false);
743   }
744 
repmgr_set_dispatch(com.sleepycat.db.ReplicationManagerMessageDispatch dispatch, int flags)745   public void repmgr_set_dispatch(com.sleepycat.db.ReplicationManagerMessageDispatch dispatch, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_repmgr_set_dispatch(swigCPtr, this,  (repmgr_msg_dispatch_handler = dispatch) != null , flags); }
746 
repmgr_site_list()747   public com.sleepycat.db.ReplicationManagerSiteInfo[] repmgr_site_list() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_repmgr_site_list(swigCPtr, this); }
748 
repmgr_start(int nthreads, int flags)749   public void repmgr_start(int nthreads, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_repmgr_start(swigCPtr, this, nthreads, flags); }
750 
repmgr_stat(int flags)751   public com.sleepycat.db.ReplicationManagerStats repmgr_stat(int flags) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_repmgr_stat(swigCPtr, this, flags); }
752 
get_backup_config(int config_type)753   public int get_backup_config(int config_type) throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbEnv_get_backup_config(swigCPtr, this, config_type); }
754 
backup(String target, int flags)755   public void backup(String target, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_backup(swigCPtr, this, target, flags); }
756 
dbbackup(String dbfile, String target, int flags)757   public void dbbackup(String dbfile, String target, int flags) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_dbbackup(swigCPtr, this, dbfile, target, flags); }
758 
set_backup_callbacks(com.sleepycat.db.BackupHandler backup_open_fcn, com.sleepycat.db.BackupHandler backup_write_fcn, com.sleepycat.db.BackupHandler backup_close_fcn)759   public void set_backup_callbacks(com.sleepycat.db.BackupHandler backup_open_fcn, com.sleepycat.db.BackupHandler backup_write_fcn, com.sleepycat.db.BackupHandler backup_close_fcn) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_backup_callbacks(swigCPtr, this,  (backup_open_handler = backup_open_fcn) != null ,  (backup_write_handler = backup_write_fcn) != null ,  (backup_close_handler = backup_close_fcn) != null ); }
760 
set_backup_config(int config_type, int value)761   public void set_backup_config(int config_type, int value) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbEnv_set_backup_config(swigCPtr, this, config_type, value); }
762 
strerror(int ret)763   public static String strerror(int ret) /* no exception */ {
764     return db_javaJNI.DbEnv_strerror(ret);
765   }
766 
get_version_family()767   public static int get_version_family() /* no exception */ {
768     return db_javaJNI.DbEnv_get_version_family();
769   }
770 
get_version_release()771   public static int get_version_release() /* no exception */ {
772     return db_javaJNI.DbEnv_get_version_release();
773   }
774 
get_version_major()775   public static int get_version_major() /* no exception */ {
776     return db_javaJNI.DbEnv_get_version_major();
777   }
778 
get_version_minor()779   public static int get_version_minor() /* no exception */ {
780     return db_javaJNI.DbEnv_get_version_minor();
781   }
782 
get_version_patch()783   public static int get_version_patch() /* no exception */ {
784     return db_javaJNI.DbEnv_get_version_patch();
785   }
786 
get_version_string()787   public static String get_version_string() /* no exception */ {
788     return db_javaJNI.DbEnv_get_version_string();
789   }
790 
get_version_full_string()791   public static String get_version_full_string() /* no exception */ {
792     return db_javaJNI.DbEnv_get_version_full_string();
793   }
794 
795 }
796