com.sleepycat.db.internal
Class DbEnv
java.lang.Object
com.sleepycat.db.internal.DbEnv
public class DbEnv
- extends java.lang.Object
Constructor Summary |
|
DbEnv(int flags)
|
protected |
DbEnv(long cPtr,
boolean cMemoryOwn)
|
Method Summary |
DbTxn |
cdsgroup_begin()
|
void |
close(int flags)
|
void |
dbremove(DbTxn txnid,
java.lang.String file,
java.lang.String database,
int flags)
|
void |
dbrename(DbTxn txnid,
java.lang.String file,
java.lang.String database,
java.lang.String newname,
int flags)
|
void |
err(int error,
java.lang.String message)
|
void |
errx(java.lang.String message)
|
void |
fileid_reset(java.lang.String file,
int flags)
|
LogRecordHandler |
get_app_dispatch()
|
long |
get_cache_max()
|
int |
get_cachesize_ncache()
|
long |
get_cachesize()
|
java.lang.String[] |
get_data_dirs()
|
int |
get_encrypt_flags()
|
ErrorHandler |
get_errcall()
|
java.io.OutputStream |
get_error_stream()
|
java.lang.String |
get_errpfx()
|
EventHandler |
get_event_notify()
|
FeedbackHandler |
get_feedback()
|
int |
get_flags()
|
java.lang.String |
get_home()
|
java.lang.String |
get_intermediate_dir_mode()
|
int |
get_lg_bsize()
|
java.lang.String |
get_lg_dir()
|
int |
get_lg_filemode()
|
int |
get_lg_max()
|
int |
get_lg_regionmax()
|
byte[][] |
get_lk_conflicts()
|
int |
get_lk_detect()
|
int |
get_lk_max_lockers()
|
int |
get_lk_max_locks()
|
int |
get_lk_max_objects()
|
java.io.OutputStream |
get_message_stream()
|
int |
get_mp_max_openfd()
|
long |
get_mp_max_write_sleep()
|
int |
get_mp_max_write()
|
long |
get_mp_mmapsize()
|
MessageHandler |
get_msgcall()
|
int |
get_open_flags()
|
PanicHandler |
get_paniccall()
|
long |
get_shm_key()
|
long |
get_timeout(int flag)
|
java.lang.String |
get_tmp_dir()
|
int |
get_tx_max()
|
long |
get_tx_timestamp()
|
boolean |
get_verbose(int which)
|
static int |
get_version_major()
|
static int |
get_version_minor()
|
static int |
get_version_patch()
|
static java.lang.String |
get_version_string()
|
protected static long |
getCPtr(DbEnv obj)
|
boolean |
is_bigendian()
|
int |
lock_detect(int flags,
int atype)
|
DbLock |
lock_get(int locker,
int flags,
DatabaseEntry object,
int lock_mode)
|
void |
lock_id_free(int id)
|
int |
lock_id()
|
void |
lock_put(DbLock lock)
|
LockStats |
lock_stat(int flags)
|
void |
lock_vec(int locker,
int flags,
LockRequest[] list,
int offset,
int count)
|
java.lang.String[] |
log_archive(int flags)
|
static int |
log_compare(LogSequenceNumber lsn0,
LogSequenceNumber lsn1)
|
DbLogc |
log_cursor(int flags)
|
java.lang.String |
log_file(LogSequenceNumber lsn)
|
void |
log_flush(LogSequenceNumber lsn_or_null)
|
boolean |
log_get_config(int which)
|
void |
log_print(DbTxn txn,
java.lang.String msg)
|
void |
log_put(LogSequenceNumber lsn,
DatabaseEntry data,
int flags)
|
void |
log_set_config(int which,
boolean onoff)
|
LogStats |
log_stat(int flags)
|
void |
lsn_reset(java.lang.String file,
int flags)
|
CacheFileStats[] |
memp_fstat(int flags)
|
CacheStats |
memp_stat(int flags)
|
int |
memp_trickle(int percent)
|
int |
mutex_get_align()
|
int |
mutex_get_increment()
|
int |
mutex_get_max()
|
int |
mutex_get_tas_spins()
|
void |
mutex_set_align(int align)
|
void |
mutex_set_increment(int increment)
|
void |
mutex_set_max(int mutex_max)
|
void |
mutex_set_tas_spins(int tas_spins)
|
MutexStats |
mutex_stat(int flags)
|
void |
open(java.lang.String db_home,
int flags,
int mode)
|
void |
remove(java.lang.String db_home,
int flags)
|
void |
rep_elect(int nsites,
int nvotes,
int flags)
|
void |
rep_flush()
|
int |
rep_get_clockskew_fast()
|
int |
rep_get_clockskew_slow()
|
boolean |
rep_get_config(int which)
|
long |
rep_get_limit()
|
int |
rep_get_nsites()
|
int |
rep_get_priority()
|
int |
rep_get_request_max()
|
int |
rep_get_request_min()
|
int |
rep_get_timeout(int which)
|
int |
rep_process_message(DatabaseEntry control,
DatabaseEntry rec,
int envid,
LogSequenceNumber ret_lsn)
|
void |
rep_set_clockskew(int fast_clock,
int slow_clock)
|
void |
rep_set_config(int which,
boolean onoff)
|
void |
rep_set_limit(long bytes)
|
void |
rep_set_nsites(int number)
|
void |
rep_set_priority(int priority)
|
void |
rep_set_request(int min,
int max)
|
void |
rep_set_timeout(int which,
long timeout)
|
void |
rep_set_transport(int envid,
ReplicationTransport send)
|
void |
rep_start(DatabaseEntry cdata,
int flags)
|
ReplicationStats |
rep_stat(int flags)
|
void |
rep_sync(int flags)
|
int |
repmgr_add_remote_site(java.lang.String host,
int port,
int flags)
|
void |
repmgr_get_ack_policy()
|
void |
repmgr_set_ack_policy(int policy)
|
void |
repmgr_set_local_site(java.lang.String host,
int port,
int flags)
|
ReplicationManagerSiteInfo[] |
repmgr_site_list()
|
void |
repmgr_start(int nthreads,
int flags)
|
ReplicationManagerStats |
repmgr_stat(int flags)
|
void |
set_app_dispatch(LogRecordHandler tx_recover)
|
void |
set_cache_max(long bytes)
|
void |
set_cachesize(long bytes,
int ncache)
|
void |
set_data_dir(java.lang.String dir)
|
void |
set_encrypt(java.lang.String passwd,
int flags)
|
void |
set_errcall(ErrorHandler db_errcall_fcn)
|
void |
set_error_stream(java.io.OutputStream stream)
|
void |
set_errpfx(java.lang.String errpfx)
|
void |
set_event_notify(EventHandler event_notify)
|
void |
set_feedback(FeedbackHandler env_feedback_fcn)
|
void |
set_flags(int flags,
boolean onoff)
|
void |
set_intermediate_dir_mode(java.lang.String mode)
|
void |
set_lg_bsize(int lg_bsize)
|
void |
set_lg_dir(java.lang.String dir)
|
void |
set_lg_filemode(int mode)
|
void |
set_lg_max(int lg_max)
|
void |
set_lg_regionmax(int lg_regionmax)
|
void |
set_lk_conflicts(byte[][] conflicts)
|
void |
set_lk_detect(int detect)
|
void |
set_lk_max_lockers(int max)
|
void |
set_lk_max_locks(int max)
|
void |
set_lk_max_objects(int max)
|
void |
set_message_stream(java.io.OutputStream stream)
|
void |
set_mp_max_openfd(int maxopenfd)
|
void |
set_mp_max_write(int maxwrite,
long maxwrite_sleep)
|
void |
set_mp_mmapsize(long mp_mmapsize)
|
void |
set_msgcall(MessageHandler db_msgcall_fcn)
|
void |
set_paniccall(PanicHandler db_panic_fcn)
|
void |
set_rpc_server(java.lang.String host,
long cl_timeout,
long sv_timeout,
int flags)
|
void |
set_shm_key(long shm_key)
|
void |
set_timeout(long timeout,
int flags)
|
void |
set_tmp_dir(java.lang.String dir)
|
void |
set_tx_max(int max)
|
void |
set_tx_timestamp(java.util.Date timestamp)
|
void |
set_verbose(int which,
boolean onoff)
|
static java.lang.String |
strerror(int error)
|
DbTxn |
txn_begin(DbTxn parent,
int flags)
|
void |
txn_checkpoint(int kbyte,
int min,
int flags)
|
PreparedTransaction[] |
txn_recover(int count,
int flags)
|
TransactionStats |
txn_stat(int flags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
swigCMemOwn
protected boolean swigCMemOwn
wrapper
public Environment wrapper
DbEnv
protected DbEnv(long cPtr,
boolean cMemoryOwn)
DbEnv
public DbEnv(int flags)
throws DatabaseException
- Throws:
DatabaseException
getCPtr
protected static long getCPtr(DbEnv obj)
close
public void close(int flags)
throws DatabaseException
- Throws:
DatabaseException
get_app_dispatch
public LogRecordHandler get_app_dispatch()
throws DatabaseException
- Throws:
DatabaseException
get_event_notify
public EventHandler get_event_notify()
throws DatabaseException
- Throws:
DatabaseException
get_feedback
public FeedbackHandler get_feedback()
throws DatabaseException
- Throws:
DatabaseException
set_errpfx
public void set_errpfx(java.lang.String errpfx)
get_errpfx
public java.lang.String get_errpfx()
get_errcall
public ErrorHandler get_errcall()
get_msgcall
public MessageHandler get_msgcall()
get_paniccall
public PanicHandler get_paniccall()
throws DatabaseException
- Throws:
DatabaseException
lock_vec
public void lock_vec(int locker,
int flags,
LockRequest[] list,
int offset,
int count)
throws DatabaseException
- Throws:
DatabaseException
remove
public void remove(java.lang.String db_home,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
set_error_stream
public void set_error_stream(java.io.OutputStream stream)
get_error_stream
public java.io.OutputStream get_error_stream()
set_message_stream
public void set_message_stream(java.io.OutputStream stream)
get_message_stream
public java.io.OutputStream get_message_stream()
set_tx_timestamp
public void set_tx_timestamp(java.util.Date timestamp)
throws DatabaseException
- Throws:
DatabaseException
dbremove
public void dbremove(DbTxn txnid,
java.lang.String file,
java.lang.String database,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
dbrename
public void dbrename(DbTxn txnid,
java.lang.String file,
java.lang.String database,
java.lang.String newname,
int flags)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
err
public void err(int error,
java.lang.String message)
errx
public void errx(java.lang.String message)
cdsgroup_begin
public DbTxn cdsgroup_begin()
throws DatabaseException
- Throws:
DatabaseException
fileid_reset
public void fileid_reset(java.lang.String file,
int flags)
throws DatabaseException
- Throws:
DatabaseException
get_data_dirs
public java.lang.String[] get_data_dirs()
throws DatabaseException
- Throws:
DatabaseException
get_encrypt_flags
public int get_encrypt_flags()
throws DatabaseException
- Throws:
DatabaseException
get_flags
public int get_flags()
throws DatabaseException
- Throws:
DatabaseException
get_home
public java.lang.String get_home()
throws DatabaseException
- Throws:
DatabaseException
get_intermediate_dir_mode
public java.lang.String get_intermediate_dir_mode()
throws DatabaseException
- Throws:
DatabaseException
get_open_flags
public int get_open_flags()
throws DatabaseException
- Throws:
DatabaseException
get_shm_key
public long get_shm_key()
throws DatabaseException
- Throws:
DatabaseException
get_tmp_dir
public java.lang.String get_tmp_dir()
throws DatabaseException
- Throws:
DatabaseException
get_verbose
public boolean get_verbose(int which)
throws DatabaseException
- Throws:
DatabaseException
is_bigendian
public boolean is_bigendian()
throws DatabaseException
- Throws:
DatabaseException
lsn_reset
public void lsn_reset(java.lang.String file,
int flags)
throws DatabaseException
- Throws:
DatabaseException
open
public void open(java.lang.String db_home,
int flags,
int mode)
throws DatabaseException,
java.io.FileNotFoundException
- Throws:
DatabaseException
java.io.FileNotFoundException
set_cachesize
public void set_cachesize(long bytes,
int ncache)
throws DatabaseException
- Throws:
DatabaseException
set_cache_max
public void set_cache_max(long bytes)
throws DatabaseException
- Throws:
DatabaseException
set_data_dir
public void set_data_dir(java.lang.String dir)
throws DatabaseException
- Throws:
DatabaseException
set_intermediate_dir_mode
public void set_intermediate_dir_mode(java.lang.String mode)
throws DatabaseException
- Throws:
DatabaseException
set_encrypt
public void set_encrypt(java.lang.String passwd,
int flags)
throws DatabaseException
- Throws:
DatabaseException
set_errcall
public void set_errcall(ErrorHandler db_errcall_fcn)
set_flags
public void set_flags(int flags,
boolean onoff)
throws DatabaseException
- Throws:
DatabaseException
set_feedback
public void set_feedback(FeedbackHandler env_feedback_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_mp_max_openfd
public void set_mp_max_openfd(int maxopenfd)
throws DatabaseException
- Throws:
DatabaseException
set_mp_max_write
public void set_mp_max_write(int maxwrite,
long maxwrite_sleep)
throws DatabaseException
- Throws:
DatabaseException
set_mp_mmapsize
public void set_mp_mmapsize(long mp_mmapsize)
throws DatabaseException
- Throws:
DatabaseException
set_msgcall
public void set_msgcall(MessageHandler db_msgcall_fcn)
set_paniccall
public void set_paniccall(PanicHandler db_panic_fcn)
throws DatabaseException
- Throws:
DatabaseException
set_rpc_server
public void set_rpc_server(java.lang.String host,
long cl_timeout,
long sv_timeout,
int flags)
throws DatabaseException
- Throws:
DatabaseException
set_shm_key
public void set_shm_key(long shm_key)
throws DatabaseException
- Throws:
DatabaseException
set_timeout
public void set_timeout(long timeout,
int flags)
throws DatabaseException
- Throws:
DatabaseException
set_tmp_dir
public void set_tmp_dir(java.lang.String dir)
throws DatabaseException
- Throws:
DatabaseException
set_tx_max
public void set_tx_max(int max)
throws DatabaseException
- Throws:
DatabaseException
set_app_dispatch
public void set_app_dispatch(LogRecordHandler tx_recover)
throws DatabaseException
- Throws:
DatabaseException
set_event_notify
public void set_event_notify(EventHandler event_notify)
throws DatabaseException
- Throws:
DatabaseException
set_verbose
public void set_verbose(int which,
boolean onoff)
throws DatabaseException
- Throws:
DatabaseException
get_lk_conflicts
public byte[][] get_lk_conflicts()
throws DatabaseException
- Throws:
DatabaseException
get_lk_detect
public int get_lk_detect()
throws DatabaseException
- Throws:
DatabaseException
get_lk_max_locks
public int get_lk_max_locks()
throws DatabaseException
- Throws:
DatabaseException
get_lk_max_lockers
public int get_lk_max_lockers()
throws DatabaseException
- Throws:
DatabaseException
get_lk_max_objects
public int get_lk_max_objects()
throws DatabaseException
- Throws:
DatabaseException
lock_detect
public int lock_detect(int flags,
int atype)
throws DatabaseException
- Throws:
DatabaseException
lock_get
public DbLock lock_get(int locker,
int flags,
DatabaseEntry object,
int lock_mode)
throws DatabaseException
- Throws:
DatabaseException
lock_id
public int lock_id()
throws DatabaseException
- Throws:
DatabaseException
lock_id_free
public void lock_id_free(int id)
throws DatabaseException
- Throws:
DatabaseException
lock_put
public void lock_put(DbLock lock)
throws DatabaseException
- Throws:
DatabaseException
lock_stat
public LockStats lock_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
set_lk_conflicts
public void set_lk_conflicts(byte[][] conflicts)
throws DatabaseException
- Throws:
DatabaseException
set_lk_detect
public void set_lk_detect(int detect)
throws DatabaseException
- Throws:
DatabaseException
set_lk_max_lockers
public void set_lk_max_lockers(int max)
throws DatabaseException
- Throws:
DatabaseException
set_lk_max_locks
public void set_lk_max_locks(int max)
throws DatabaseException
- Throws:
DatabaseException
set_lk_max_objects
public void set_lk_max_objects(int max)
throws DatabaseException
- Throws:
DatabaseException
get_lg_bsize
public int get_lg_bsize()
throws DatabaseException
- Throws:
DatabaseException
get_lg_dir
public java.lang.String get_lg_dir()
throws DatabaseException
- Throws:
DatabaseException
get_lg_filemode
public int get_lg_filemode()
throws DatabaseException
- Throws:
DatabaseException
get_lg_max
public int get_lg_max()
throws DatabaseException
- Throws:
DatabaseException
get_lg_regionmax
public int get_lg_regionmax()
throws DatabaseException
- Throws:
DatabaseException
log_archive
public java.lang.String[] log_archive(int flags)
throws DatabaseException
- Throws:
DatabaseException
log_compare
public static int log_compare(LogSequenceNumber lsn0,
LogSequenceNumber lsn1)
log_cursor
public DbLogc log_cursor(int flags)
throws DatabaseException
- Throws:
DatabaseException
log_file
public java.lang.String log_file(LogSequenceNumber lsn)
throws DatabaseException
- Throws:
DatabaseException
log_flush
public void log_flush(LogSequenceNumber lsn_or_null)
throws DatabaseException
- Throws:
DatabaseException
log_get_config
public boolean log_get_config(int which)
throws DatabaseException
- Throws:
DatabaseException
log_put
public void log_put(LogSequenceNumber lsn,
DatabaseEntry data,
int flags)
throws DatabaseException
- Throws:
DatabaseException
log_print
public void log_print(DbTxn txn,
java.lang.String msg)
throws DatabaseException
- Throws:
DatabaseException
log_set_config
public void log_set_config(int which,
boolean onoff)
throws DatabaseException
- Throws:
DatabaseException
log_stat
public LogStats log_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
set_lg_bsize
public void set_lg_bsize(int lg_bsize)
throws DatabaseException
- Throws:
DatabaseException
set_lg_dir
public void set_lg_dir(java.lang.String dir)
throws DatabaseException
- Throws:
DatabaseException
set_lg_filemode
public void set_lg_filemode(int mode)
throws DatabaseException
- Throws:
DatabaseException
set_lg_max
public void set_lg_max(int lg_max)
throws DatabaseException
- Throws:
DatabaseException
set_lg_regionmax
public void set_lg_regionmax(int lg_regionmax)
throws DatabaseException
- Throws:
DatabaseException
get_cachesize
public long get_cachesize()
throws DatabaseException
- Throws:
DatabaseException
get_cachesize_ncache
public int get_cachesize_ncache()
throws DatabaseException
- Throws:
DatabaseException
get_cache_max
public long get_cache_max()
throws DatabaseException
- Throws:
DatabaseException
get_mp_max_openfd
public int get_mp_max_openfd()
throws DatabaseException
- Throws:
DatabaseException
get_mp_max_write
public int get_mp_max_write()
throws DatabaseException
- Throws:
DatabaseException
get_mp_max_write_sleep
public long get_mp_max_write_sleep()
throws DatabaseException
- Throws:
DatabaseException
get_mp_mmapsize
public long get_mp_mmapsize()
throws DatabaseException
- Throws:
DatabaseException
memp_stat
public CacheStats memp_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
memp_fstat
public CacheFileStats[] memp_fstat(int flags)
throws DatabaseException
- Throws:
DatabaseException
memp_trickle
public int memp_trickle(int percent)
throws DatabaseException
- Throws:
DatabaseException
mutex_get_align
public int mutex_get_align()
throws DatabaseException
- Throws:
DatabaseException
mutex_get_increment
public int mutex_get_increment()
throws DatabaseException
- Throws:
DatabaseException
mutex_get_max
public int mutex_get_max()
throws DatabaseException
- Throws:
DatabaseException
mutex_get_tas_spins
public int mutex_get_tas_spins()
throws DatabaseException
- Throws:
DatabaseException
mutex_set_align
public void mutex_set_align(int align)
throws DatabaseException
- Throws:
DatabaseException
mutex_set_increment
public void mutex_set_increment(int increment)
throws DatabaseException
- Throws:
DatabaseException
mutex_set_max
public void mutex_set_max(int mutex_max)
throws DatabaseException
- Throws:
DatabaseException
mutex_set_tas_spins
public void mutex_set_tas_spins(int tas_spins)
throws DatabaseException
- Throws:
DatabaseException
mutex_stat
public MutexStats mutex_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
get_tx_max
public int get_tx_max()
throws DatabaseException
- Throws:
DatabaseException
get_tx_timestamp
public long get_tx_timestamp()
throws DatabaseException
- Throws:
DatabaseException
get_timeout
public long get_timeout(int flag)
throws DatabaseException
- Throws:
DatabaseException
txn_begin
public DbTxn txn_begin(DbTxn parent,
int flags)
throws DatabaseException
- Throws:
DatabaseException
txn_checkpoint
public void txn_checkpoint(int kbyte,
int min,
int flags)
throws DatabaseException
- Throws:
DatabaseException
txn_recover
public PreparedTransaction[] txn_recover(int count,
int flags)
throws DatabaseException
- Throws:
DatabaseException
txn_stat
public TransactionStats txn_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
rep_get_limit
public long rep_get_limit()
throws DatabaseException
- Throws:
DatabaseException
rep_elect
public void rep_elect(int nsites,
int nvotes,
int flags)
throws DatabaseException
- Throws:
DatabaseException
rep_process_message
public int rep_process_message(DatabaseEntry control,
DatabaseEntry rec,
int envid,
LogSequenceNumber ret_lsn)
rep_flush
public void rep_flush()
throws DatabaseException
- Throws:
DatabaseException
rep_set_config
public void rep_set_config(int which,
boolean onoff)
throws DatabaseException
- Throws:
DatabaseException
rep_set_clockskew
public void rep_set_clockskew(int fast_clock,
int slow_clock)
throws DatabaseException
- Throws:
DatabaseException
rep_get_clockskew_fast
public int rep_get_clockskew_fast()
throws DatabaseException
- Throws:
DatabaseException
rep_get_clockskew_slow
public int rep_get_clockskew_slow()
throws DatabaseException
- Throws:
DatabaseException
rep_start
public void rep_start(DatabaseEntry cdata,
int flags)
throws DatabaseException
- Throws:
DatabaseException
rep_sync
public void rep_sync(int flags)
throws DatabaseException
- Throws:
DatabaseException
rep_get_config
public boolean rep_get_config(int which)
throws DatabaseException
- Throws:
DatabaseException
rep_stat
public ReplicationStats rep_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
rep_set_limit
public void rep_set_limit(long bytes)
throws DatabaseException
- Throws:
DatabaseException
rep_get_request_min
public int rep_get_request_min()
throws DatabaseException
- Throws:
DatabaseException
rep_get_request_max
public int rep_get_request_max()
throws DatabaseException
- Throws:
DatabaseException
rep_set_request
public void rep_set_request(int min,
int max)
throws DatabaseException
- Throws:
DatabaseException
rep_set_transport
public void rep_set_transport(int envid,
ReplicationTransport send)
throws DatabaseException
- Throws:
DatabaseException
rep_get_nsites
public int rep_get_nsites()
throws DatabaseException
- Throws:
DatabaseException
rep_get_priority
public int rep_get_priority()
throws DatabaseException
- Throws:
DatabaseException
rep_get_timeout
public int rep_get_timeout(int which)
throws DatabaseException
- Throws:
DatabaseException
rep_set_nsites
public void rep_set_nsites(int number)
throws DatabaseException
- Throws:
DatabaseException
rep_set_priority
public void rep_set_priority(int priority)
throws DatabaseException
- Throws:
DatabaseException
rep_set_timeout
public void rep_set_timeout(int which,
long timeout)
throws DatabaseException
- Throws:
DatabaseException
repmgr_add_remote_site
public int repmgr_add_remote_site(java.lang.String host,
int port,
int flags)
throws DatabaseException
- Throws:
DatabaseException
repmgr_get_ack_policy
public void repmgr_get_ack_policy()
throws DatabaseException
- Throws:
DatabaseException
repmgr_set_ack_policy
public void repmgr_set_ack_policy(int policy)
throws DatabaseException
- Throws:
DatabaseException
repmgr_set_local_site
public void repmgr_set_local_site(java.lang.String host,
int port,
int flags)
throws DatabaseException
- Throws:
DatabaseException
repmgr_site_list
public ReplicationManagerSiteInfo[] repmgr_site_list()
throws DatabaseException
- Throws:
DatabaseException
repmgr_start
public void repmgr_start(int nthreads,
int flags)
throws DatabaseException
- Throws:
DatabaseException
repmgr_stat
public ReplicationManagerStats repmgr_stat(int flags)
throws DatabaseException
- Throws:
DatabaseException
strerror
public static java.lang.String strerror(int error)
get_version_major
public static int get_version_major()
get_version_minor
public static int get_version_minor()
get_version_patch
public static int get_version_patch()
get_version_string
public static java.lang.String get_version_string()