示例#1
0
static int __dbj_fill_mpool_fstat(JNIEnv *jnienv,
    jobject jobj, struct __db_mpool_fstat *statp) {
	JAVADB_STAT_INT(jnienv, jobj, mpool_fstat_st_pagesize_fid, statp, st_pagesize);
	JAVADB_STAT_INT(jnienv, jobj, mpool_fstat_st_map_fid, statp, st_map);
	JAVADB_STAT_LONG(jnienv, jobj, mpool_fstat_st_cache_hit_fid, statp, st_cache_hit);
	JAVADB_STAT_LONG(jnienv, jobj, mpool_fstat_st_cache_miss_fid, statp, st_cache_miss);
	JAVADB_STAT_LONG(jnienv, jobj, mpool_fstat_st_page_create_fid, statp, st_page_create);
	JAVADB_STAT_LONG(jnienv, jobj, mpool_fstat_st_page_in_fid, statp, st_page_in);
	JAVADB_STAT_LONG(jnienv, jobj, mpool_fstat_st_page_out_fid, statp, st_page_out);
	JAVADB_STAT_STRING(jnienv, jobj, mpool_fstat_file_name_fid, statp, file_name);
	return (0);
}
示例#2
0
static int __dbj_fill_txn_active(JNIEnv *jnienv,
    jobject jobj, struct __db_txn_active *statp) {
	JAVADB_STAT_INT(jnienv, jobj, txn_active_txnid_fid, statp, txnid);
	JAVADB_STAT_INT(jnienv, jobj, txn_active_parentid_fid, statp, parentid);
	JAVADB_STAT_INT(jnienv, jobj, txn_active_pid_fid, statp, pid);
	JAVADB_STAT_LSN(jnienv, jobj, txn_active_lsn_fid, statp, lsn);
	JAVADB_STAT_LSN(jnienv, jobj, txn_active_read_lsn_fid, statp, read_lsn);
	JAVADB_STAT_INT(jnienv, jobj, txn_active_mvcc_ref_fid, statp, mvcc_ref);
	JAVADB_STAT_INT(jnienv, jobj, txn_active_priority_fid, statp, priority);
	JAVADB_STAT_GID(jnienv, jobj, txn_active_gid_fid, statp, gid);
	JAVADB_STAT_STRING(jnienv, jobj, txn_active_name_fid, statp, name);
	return (0);
}