Added more methods for DbSystem class in java.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@769 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
dsandersoremutah
2006-08-15 21:21:17 +00:00
parent 51c3425070
commit a14f862fae
22 changed files with 2214 additions and 209 deletions

View File

@@ -33,47 +33,47 @@
// Field IDs for the IndexStatus class in JAVA.
static jfieldID IndexStatus_fidIndexNum = NULL;
static jfieldID IndexStatus_fidState = NULL;
static jfieldID IndexStatus_fidStartTime = NULL;
static jfieldID IndexStatus_fidLastDocumentIndexed = NULL;
static jfieldID IndexStatus_fidKeysProcessed = NULL;
static jfieldID IndexStatus_fidDocumentsProcessed = NULL;
static jfieldID IndexStatus_fidTransactions = NULL;
static jfieldID fid_IndexStatus_iIndexNum = NULL;
static jfieldID fid_IndexStatus_iState = NULL;
static jfieldID fid_IndexStatus_iStartTime = NULL;
static jfieldID fid_IndexStatus_lLastDocumentIndexed = NULL;
static jfieldID fid_IndexStatus_lKeysProcessed = NULL;
static jfieldID fid_IndexStatus_lDocumentsProcessed = NULL;
static jfieldID fid_IndexStatus_lTransactions = NULL;
// Field IDs for the ImportStats class in JAVA.
static jfieldID ImportStats_fidLines = NULL;
static jfieldID ImportStats_fidChars = NULL;
static jfieldID ImportStats_fidAttributes = NULL;
static jfieldID ImportStats_fidElements = NULL;
static jfieldID ImportStats_fidText = NULL;
static jfieldID ImportStats_fidDocuments = NULL;
static jfieldID ImportStats_fidErrLineNum = NULL;
static jfieldID ImportStats_fidErrLineOffset = NULL;
static jfieldID ImportStats_fidErrorType = NULL;
static jfieldID ImportStats_fidErrLineFilePos = NULL;
static jfieldID ImportStats_fidErrLineBytes = NULL;
static jfieldID ImportStats_fidUTF8Encoding = NULL;
static jfieldID fid_ImportStats_iLines = NULL;
static jfieldID fid_ImportStats_iChars = NULL;
static jfieldID fid_ImportStats_iAttributes = NULL;
static jfieldID fid_ImportStats_iElements = NULL;
static jfieldID fid_ImportStats_iText = NULL;
static jfieldID fid_ImportStats_iDocuments = NULL;
static jfieldID fid_ImportStats_iErrLineNum = NULL;
static jfieldID fid_ImportStats_iErrLineOffset = NULL;
static jfieldID fid_ImportStats_iErrorType = NULL;
static jfieldID fid_ImportStats_iErrLineFilePos = NULL;
static jfieldID fid_ImportStats_iErrLineBytes = NULL;
static jfieldID fid_ImportStats_bUTF8Encoding = NULL;
// Field IDs for the CheckpointInfo class in JAVA
static jfieldID CheckpointInfo_fidRunning = NULL;
static jfieldID CheckpointInfo_fidRunningTime = NULL;
static jfieldID CheckpointInfo_fidForcingCheckpoint = NULL;
static jfieldID CheckpointInfo_fidForceCheckpointRunningTime = NULL;
static jfieldID CheckpointInfo_fidForceCheckpointReason = NULL;
static jfieldID CheckpointInfo_fidWritingDataBlocks = NULL;
static jfieldID CheckpointInfo_fidLogBlocksWritten = NULL;
static jfieldID CheckpointInfo_fidDataBlocksWritten = NULL;
static jfieldID CheckpointInfo_fidDirtyCacheBytes = NULL;
static jfieldID CheckpointInfo_fidBlockSize = NULL;
static jfieldID CheckpointInfo_fidWaitTruncateTime = NULL;
static jfieldID fid_CheckpointInfo_bRunning = NULL;
static jfieldID fid_CheckpointInfo_iRunningTime = NULL;
static jfieldID fid_CheckpointInfo_bForcingCheckpoint = NULL;
static jfieldID fid_CheckpointInfo_iForceCheckpointRunningTime = NULL;
static jfieldID fid_CheckpointInfo_iForceCheckpointReason = NULL;
static jfieldID fid_CheckpointInfo_bWritingDataBlocks = NULL;
static jfieldID fid_CheckpointInfo_iLogBlocksWritten = NULL;
static jfieldID fid_CheckpointInfo_iDataBlocksWritten = NULL;
static jfieldID fid_CheckpointInfo_iDirtyCacheBytes = NULL;
static jfieldID fid_CheckpointInfo_iBlockSize = NULL;
static jfieldID fid_CheckpointInfo_iWaitTruncateTime = NULL;
// Field IDs for the LockUser class in JAVA
static jfieldID LockUser_fidThreadId = NULL;
static jfieldID LockUser_fidTime = NULL;
static jfieldID fid_LockUser_iThreadId = NULL;
static jfieldID fid_LockUser_iTime = NULL;
#define THIS_FDB() \
((IF_Db *)(FLMUINT)lThis)
@@ -524,57 +524,57 @@ JNIEXPORT void JNICALL Java_xflaim_CheckpointInfo_initIDs(
// Get the field IDs for the fields in the class.
if ((CheckpointInfo_fidRunning = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_bRunning = pEnv->GetFieldID( jCheckpointInfoClass,
"bRunning", "Z")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidRunningTime = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iRunningTime = pEnv->GetFieldID( jCheckpointInfoClass,
"iRunningTime", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidForcingCheckpoint = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_bForcingCheckpoint = pEnv->GetFieldID( jCheckpointInfoClass,
"bForcingCheckpoint", "Z")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidForceCheckpointRunningTime = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iForceCheckpointRunningTime = pEnv->GetFieldID( jCheckpointInfoClass,
"iForceCheckpointRunningTime", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidForceCheckpointReason = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iForceCheckpointReason = pEnv->GetFieldID( jCheckpointInfoClass,
"iForceCheckpointReason", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidWritingDataBlocks = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_bWritingDataBlocks = pEnv->GetFieldID( jCheckpointInfoClass,
"bWritingDataBlocks", "Z")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidLogBlocksWritten = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iLogBlocksWritten = pEnv->GetFieldID( jCheckpointInfoClass,
"iLogBlocksWritten", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidDataBlocksWritten = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iDataBlocksWritten = pEnv->GetFieldID( jCheckpointInfoClass,
"iDataBlocksWritten", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidDirtyCacheBytes = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iDirtyCacheBytes = pEnv->GetFieldID( jCheckpointInfoClass,
"iDirtyCacheBytes", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidBlockSize = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iBlockSize = pEnv->GetFieldID( jCheckpointInfoClass,
"iBlockSize", "I")) == NULL)
{
goto Exit;
}
if ((CheckpointInfo_fidWaitTruncateTime = pEnv->GetFieldID( jCheckpointInfoClass,
if ((fid_CheckpointInfo_iWaitTruncateTime = pEnv->GetFieldID( jCheckpointInfoClass,
"iWaitTruncateTime", "I")) == NULL)
{
goto Exit;
@@ -595,37 +595,37 @@ JNIEXPORT void JNICALL Java_xflaim_IndexStatus_initIDs(
// Get the field IDs for the fields in the class.
if ((IndexStatus_fidIndexNum = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_iIndexNum = pEnv->GetFieldID( jIndexStatusClass,
"iIndexNum", "I")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidState = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_iState = pEnv->GetFieldID( jIndexStatusClass,
"iState", "I")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidStartTime = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_iStartTime = pEnv->GetFieldID( jIndexStatusClass,
"iStartTime", "I")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidLastDocumentIndexed = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_lLastDocumentIndexed = pEnv->GetFieldID( jIndexStatusClass,
"lLastDocumentIndexed", "J")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidKeysProcessed = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_lKeysProcessed = pEnv->GetFieldID( jIndexStatusClass,
"lKeysProcessed", "J")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidDocumentsProcessed = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_lDocumentsProcessed = pEnv->GetFieldID( jIndexStatusClass,
"lDocumentsProcessed", "J")) == NULL)
{
goto Exit;
}
if ((IndexStatus_fidTransactions = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_IndexStatus_lTransactions = pEnv->GetFieldID( jIndexStatusClass,
"lTransactions", "J")) == NULL)
{
goto Exit;
@@ -646,67 +646,62 @@ JNIEXPORT void JNICALL Java_xflaim_ImportStats_initIDs(
// Get the field IDs for the fields in the class.
if ((IndexStatus_fidIndexNum = pEnv->GetFieldID( jImportStatsClass,
"iIndexNum", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidLines = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iLines = pEnv->GetFieldID( jImportStatsClass,
"iLines", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidChars = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iChars = pEnv->GetFieldID( jImportStatsClass,
"iChars", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidAttributes = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iAttributes = pEnv->GetFieldID( jImportStatsClass,
"iAttributes", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidElements = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iElements = pEnv->GetFieldID( jImportStatsClass,
"iElements", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidText = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iText = pEnv->GetFieldID( jImportStatsClass,
"iText", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidDocuments = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iDocuments = pEnv->GetFieldID( jImportStatsClass,
"iDocuments", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidErrLineNum = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iErrLineNum = pEnv->GetFieldID( jImportStatsClass,
"iErrLineNum", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidErrLineOffset = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iErrLineOffset = pEnv->GetFieldID( jImportStatsClass,
"iErrLineOffset", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidErrorType = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iErrorType = pEnv->GetFieldID( jImportStatsClass,
"iErrorType", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidErrLineFilePos = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iErrLineFilePos = pEnv->GetFieldID( jImportStatsClass,
"iErrLineFilePos", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidErrLineBytes = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_iErrLineBytes = pEnv->GetFieldID( jImportStatsClass,
"iErrLineBytes", "I")) == NULL)
{
goto Exit;
}
if ((ImportStats_fidUTF8Encoding = pEnv->GetFieldID( jImportStatsClass,
if ((fid_ImportStats_bUTF8Encoding = pEnv->GetFieldID( jImportStatsClass,
"bUTF8Encoding", "Z")) == NULL)
{
goto Exit;
@@ -727,12 +722,12 @@ JNIEXPORT void JNICALL Java_xflaim_LockUser_initIDs(
// Get the field IDs for the fields in the class.
if ((LockUser_fidThreadId = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_LockUser_iThreadId = pEnv->GetFieldID( jIndexStatusClass,
"iThreadId", "I")) == NULL)
{
goto Exit;
}
if ((LockUser_fidTime = pEnv->GetFieldID( jIndexStatusClass,
if ((fid_LockUser_iTime = pEnv->GetFieldID( jIndexStatusClass,
"iTime", "I")) == NULL)
{
goto Exit;
@@ -780,16 +775,16 @@ JNIEXPORT jobject JNICALL Java_xflaim_Db__1indexStatus(
// Set the fields in the object
pEnv->SetIntField( jIndexStatus, IndexStatus_fidIndexNum, iIndex);
pEnv->SetIntField( jIndexStatus, IndexStatus_fidState, (jint)ixStatus.eState);
pEnv->SetIntField( jIndexStatus, IndexStatus_fidStartTime, (jint)ixStatus.uiStartTime);
pEnv->SetLongField( jIndexStatus, IndexStatus_fidLastDocumentIndexed,
pEnv->SetIntField( jIndexStatus, fid_IndexStatus_iIndexNum, iIndex);
pEnv->SetIntField( jIndexStatus, fid_IndexStatus_iState, (jint)ixStatus.eState);
pEnv->SetIntField( jIndexStatus, fid_IndexStatus_iStartTime, (jint)ixStatus.uiStartTime);
pEnv->SetLongField( jIndexStatus, fid_IndexStatus_lLastDocumentIndexed,
(jlong)ixStatus.ui64LastDocumentIndexed);
pEnv->SetLongField( jIndexStatus, IndexStatus_fidKeysProcessed,
pEnv->SetLongField( jIndexStatus, fid_IndexStatus_lKeysProcessed,
(jlong)ixStatus.ui64KeysProcessed);
pEnv->SetLongField( jIndexStatus, IndexStatus_fidDocumentsProcessed,
pEnv->SetLongField( jIndexStatus, fid_IndexStatus_lDocumentsProcessed,
(jlong)ixStatus.ui64DocumentsProcessed);
pEnv->SetLongField( jIndexStatus, IndexStatus_fidTransactions,
pEnv->SetLongField( jIndexStatus, fid_IndexStatus_lTransactions,
(jlong)ixStatus.ui64Transactions);
Exit:
@@ -897,18 +892,18 @@ JNIEXPORT jobject JNICALL Java_xflaim_Db__1import(
// Set the fields in the object
pEnv->SetIntField( jImportStats, ImportStats_fidLines, (jint)importStats.uiLines);
pEnv->SetIntField( jImportStats, ImportStats_fidChars, (jint)importStats.uiChars);
pEnv->SetIntField( jImportStats, ImportStats_fidAttributes, (jint)importStats.uiAttributes);
pEnv->SetIntField( jImportStats, ImportStats_fidElements, (jint)importStats.uiElements);
pEnv->SetIntField( jImportStats, ImportStats_fidText, (jint)importStats.uiText);
pEnv->SetIntField( jImportStats, ImportStats_fidDocuments, (jint)importStats.uiDocuments);
pEnv->SetIntField( jImportStats, ImportStats_fidErrLineNum, (jint)importStats.uiErrLineNum);
pEnv->SetIntField( jImportStats, ImportStats_fidErrLineOffset, (jint)importStats.uiErrLineOffset);
pEnv->SetIntField( jImportStats, ImportStats_fidErrorType, (jint)importStats.eErrorType);
pEnv->SetIntField( jImportStats, ImportStats_fidErrLineFilePos, (jint)importStats.uiErrLineFilePos);
pEnv->SetIntField( jImportStats, ImportStats_fidErrLineBytes, (jint)importStats.uiErrLineBytes);
pEnv->SetBooleanField( jImportStats, ImportStats_fidUTF8Encoding,
pEnv->SetIntField( jImportStats, fid_ImportStats_iLines, (jint)importStats.uiLines);
pEnv->SetIntField( jImportStats, fid_ImportStats_iChars, (jint)importStats.uiChars);
pEnv->SetIntField( jImportStats, fid_ImportStats_iAttributes, (jint)importStats.uiAttributes);
pEnv->SetIntField( jImportStats, fid_ImportStats_iElements, (jint)importStats.uiElements);
pEnv->SetIntField( jImportStats, fid_ImportStats_iText, (jint)importStats.uiText);
pEnv->SetIntField( jImportStats, fid_ImportStats_iDocuments, (jint)importStats.uiDocuments);
pEnv->SetIntField( jImportStats, fid_ImportStats_iErrLineNum, (jint)importStats.uiErrLineNum);
pEnv->SetIntField( jImportStats, fid_ImportStats_iErrLineOffset, (jint)importStats.uiErrLineOffset);
pEnv->SetIntField( jImportStats, fid_ImportStats_iErrorType, (jint)importStats.eErrorType);
pEnv->SetIntField( jImportStats, fid_ImportStats_iErrLineFilePos, (jint)importStats.uiErrLineFilePos);
pEnv->SetIntField( jImportStats, fid_ImportStats_iErrLineBytes, (jint)importStats.uiErrLineBytes);
pEnv->SetBooleanField( jImportStats, fid_ImportStats_bUTF8Encoding,
(jboolean)(importStats.eXMLEncoding == XFLM_XML_UTF8_ENCODING
? JNI_TRUE
: JNI_FALSE));
@@ -2863,27 +2858,27 @@ JNIEXPORT jobject JNICALL Java_xflaim_Db__1getCheckpointInfo(
// Set the fields in the object
pEnv->SetBooleanField( jCheckpointInfo, CheckpointInfo_fidRunning,
pEnv->SetBooleanField( jCheckpointInfo, fid_CheckpointInfo_bRunning,
(jboolean)(checkpointInfo.bRunning ? JNI_TRUE : JNI_FALSE));
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidRunningTime,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iRunningTime,
(jint)checkpointInfo.uiRunningTime);
pEnv->SetBooleanField( jCheckpointInfo, CheckpointInfo_fidForcingCheckpoint,
pEnv->SetBooleanField( jCheckpointInfo, fid_CheckpointInfo_bForcingCheckpoint,
(jboolean)(checkpointInfo.bForcingCheckpoint ? JNI_TRUE : JNI_FALSE));
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidForceCheckpointRunningTime,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iForceCheckpointRunningTime,
(jint)checkpointInfo.uiForceCheckpointRunningTime);
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidForceCheckpointReason,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iForceCheckpointReason,
(jint)checkpointInfo.iForceCheckpointReason);
pEnv->SetBooleanField( jCheckpointInfo, CheckpointInfo_fidWritingDataBlocks,
pEnv->SetBooleanField( jCheckpointInfo, fid_CheckpointInfo_bWritingDataBlocks,
(jboolean)(checkpointInfo.bWritingDataBlocks ? JNI_TRUE : JNI_FALSE));
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidLogBlocksWritten,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iLogBlocksWritten,
(jint)checkpointInfo.uiLogBlocksWritten);
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidDataBlocksWritten,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iDataBlocksWritten,
(jint)checkpointInfo.uiDataBlocksWritten);
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidDirtyCacheBytes,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iDirtyCacheBytes,
(jint)checkpointInfo.uiDirtyCacheBytes);
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidBlockSize,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iBlockSize,
(jint)checkpointInfo.uiBlockSize);
pEnv->SetIntField( jCheckpointInfo, CheckpointInfo_fidWaitTruncateTime,
pEnv->SetIntField( jCheckpointInfo, fid_CheckpointInfo_iWaitTruncateTime,
(jint)checkpointInfo.uiWaitTruncateTime);
Exit:
@@ -3136,8 +3131,8 @@ JNIEXPORT jobjectArray JNICALL Java_xflaim_Db__1getLockWaiters(
{
goto Exit;
}
pEnv->SetIntField( jLockUser, LockUser_fidThreadId, (jint)pLockUser->uiThreadId);
pEnv->SetIntField( jLockUser, LockUser_fidTime, (jint)pLockUser->uiTime);
pEnv->SetIntField( jLockUser, fid_LockUser_iThreadId, (jint)pLockUser->uiThreadId);
pEnv->SetIntField( jLockUser, fid_LockUser_iTime, (jint)pLockUser->uiTime);
pEnv->SetObjectArrayElement( jLockUsers, (jsize)uiLoop, jLockUser);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_BlockIOStats */
#ifndef _Included_xflaim_BlockIOStats
#define _Included_xflaim_BlockIOStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_BlockIOStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_BlockIOStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_CountTimeStat */
#ifndef _Included_xflaim_CountTimeStat
#define _Included_xflaim_CountTimeStat
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_CountTimeStat
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_CountTimeStat_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_DbStats */
#ifndef _Included_xflaim_DbStats
#define _Included_xflaim_DbStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_DbStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_DbStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -247,6 +247,70 @@ JNIEXPORT void JNICALL Java_xflaim_DbSystem__1setHardMemoryLimit
JNIEXPORT jboolean JNICALL Java_xflaim_DbSystem__1getDynamicCacheSupported
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _getCacheInfo
* Signature: (J)Lxflaim/CacheInfo;
*/
JNIEXPORT jobject JNICALL Java_xflaim_DbSystem__1getCacheInfo
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _enableCacheDebug
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_xflaim_DbSystem__1enableCacheDebug
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: xflaim_DbSystem
* Method: _cacheDebugEnabled
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_xflaim_DbSystem__1cacheDebugEnabled
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _closeUnusedFiles
* Signature: (JI)V
*/
JNIEXPORT void JNICALL Java_xflaim_DbSystem__1closeUnusedFiles
(JNIEnv *, jobject, jlong, jint);
/*
* Class: xflaim_DbSystem
* Method: _startStats
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_xflaim_DbSystem__1startStats
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _stopStats
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_xflaim_DbSystem__1stopStats
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _resetStats
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_xflaim_DbSystem__1resetStats
(JNIEnv *, jobject, jlong);
/*
* Class: xflaim_DbSystem
* Method: _getStats
* Signature: (J)Lxflaim/Stats;
*/
JNIEXPORT jobject JNICALL Java_xflaim_DbSystem__1getStats
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_DiskIOStat */
#ifndef _Included_xflaim_DiskIOStat
#define _Included_xflaim_DiskIOStat
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_DiskIOStat
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_DiskIOStat_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_LFileStats */
#ifndef _Included_xflaim_LFileStats
#define _Included_xflaim_LFileStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_LFileStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_LFileStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_LockStats */
#ifndef _Included_xflaim_LockStats
#define _Included_xflaim_LockStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_LockStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_LockStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_RTransStats */
#ifndef _Included_xflaim_RTransStats
#define _Included_xflaim_RTransStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_RTransStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_RTransStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_Stats */
#ifndef _Included_xflaim_Stats
#define _Included_xflaim_Stats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_Stats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_Stats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class xflaim_UTransStats */
#ifndef _Included_xflaim_UTransStats
#define _Included_xflaim_UTransStats
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: xflaim_UTransStats
* Method: initIDs
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_xflaim_UTransStats_initIDs
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// Desc: BlockIOStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The BlockIOStats class provides members that give block I/O statistics
*/
public class BlockIOStats
{
public DiskIOStat blockReads;
public DiskIOStat oldViewBlockReads;
public int iBlockChkErrs;
public int iOldViewBlockChkErrs;
public int iOldViewErrors;
public DiskIOStat blockWrites;
private static native void initIDs();
}

View File

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// Desc: CountTimeStat Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The CountTimeStat class provides members that give count and time statistics
*/
public class CountTimeStat
{
public long lCount;
public long lElapMilli;
private static native void initIDs();
}

View File

@@ -0,0 +1,49 @@
//------------------------------------------------------------------------------
// Desc: DbStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The DbStats class provides members that give database statistics
*/
public class DbStats
{
public String sDbName;
public RTransStats readTransStats;
public UTransStats updateTransStats;
public LFileStats[] lfileStats;
public BlockIOStats lfhBlockStats;
public BlockIOStats availBlockStats;
public DiskIOStat dbHdrWrites;
public DiskIOStat logBlockWrites;
public DiskIOStat logBlockRestores;
public DiskIOStat logBlockReads;
public int iLogBlockChkErrs;
public int iReadErrors;
public int iWriteErrors;
public LockStats lockStats;
private static native void initIDs();
}

View File

@@ -587,6 +587,48 @@ public class DbSystem
return( _getDynamicCacheSupported( m_this));
}
public CacheInfo getCacheInfo() throws XFlaimException
{
return( _getCacheInfo( m_this));
}
public void enableCacheDebug(
boolean bDebug) throws XFlaimException
{
_enableCacheDebug( m_this, bDebug);
}
public boolean cacheDebugEnabled() throws XFlaimException
{
return( _cacheDebugEnabled( m_this));
}
public void closeUnusedFiles(
int iSeconds) throws XFlaimException
{
_closeUnusedFiles( m_this, iSeconds);
}
public void startStats() throws XFlaimException
{
_startStats( m_this);
}
public void stopStats() throws XFlaimException
{
_stopStats( m_this);
}
public void resetStats() throws XFlaimException
{
_resetStats( m_this);
}
public Stats getStats() throws XFlaimException
{
return( _getStats( m_this));
}
private native long _createDbSystem();
private native void _init( long lThis);
@@ -760,6 +802,32 @@ public class DbSystem
private native boolean _getDynamicCacheSupported(
long lThis) throws XFlaimException;
private native CacheInfo _getCacheInfo(
long lThis) throws XFlaimException;
private native void _enableCacheDebug(
long lThis,
boolean bDebug) throws XFlaimException;
private native boolean _cacheDebugEnabled(
long lThis) throws XFlaimException;
private native void _closeUnusedFiles(
long lThis,
int iSeconds) throws XFlaimException;
private native void _startStats(
long lThis) throws XFlaimException;
private native void _stopStats(
long lThis) throws XFlaimException;
private native void _resetStats(
long lThis) throws XFlaimException;
private native Stats _getStats(
long lThis) throws XFlaimException;
private long m_this;
}
@@ -784,23 +852,6 @@ virtual void FLMAPI freeMem(
//here
virtual void FLMAPI getCacheInfo(
XFLM_CACHE_INFO * pCacheInfo) = 0;
virtual void FLMAPI enableCacheDebug(
FLMBOOL bDebug) = 0;
virtual FLMBOOL FLMAPI cacheDebugEnabled( void) = 0;
virtual RCODE FLMAPI closeUnusedFiles(
FLMUINT uiSeconds) = 0;
virtual void FLMAPI startStats( void) = 0;
virtual void FLMAPI stopStats( void) = 0;
virtual void FLMAPI resetStats( void) = 0;
virtual RCODE FLMAPI getStats(
XFLM_STATS * pFlmStats) = 0;

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// Desc: DiskIOStat Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The DiskIOStat class provides members that give disk I/O statistics
*/
public class DiskIOStat
{
public long lCount;
public long lTotalBytes;
public long lElapMilli;
private static native void initIDs();
}

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// Desc: LFileStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The LFileStats class provides members that give logical file statistics
*/
public class LFileStats
{
public BlockIOStats rootBlockStats;
public BlockIOStats middleBlockStats;
public BlockIOStats leafBlockStats;
public long lBlockSplits;
public long lBlockCombines;
public int iLFileNum;
public boolean bIsIndex;
private static native void initIDs();
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// Desc: LockStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The LockStats class provides members that give lock statistics
*/
public class LockStats
{
public CountTimeStat noLocks;
public CountTimeStat waitingForLock;
public CountTimeStat heldLock;
private static native void initIDs();
}

View File

@@ -0,0 +1,37 @@
//------------------------------------------------------------------------------
// Desc: RTransStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The RTransStats class provides members that give read transaction statistics
*/
public class RTransStats
{
public CountTimeStat committedTrans;
public CountTimeStat abortedTrans;
private static native void initIDs();
}

View File

@@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// Desc: Stats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The Stats class provides members that give system statistics
*/
public class Stats
{
public DbStats[] dbStats;
public int iStartTime;
public int iStopTime;
private static native void initIDs();
}

View File

@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// Desc: UTransStats Class
//
// Tabs: 3
//
// Copyright (c) 2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id$
//------------------------------------------------------------------------------
package xflaim;
/**
* The UTransStats class provides members that give update transaction statistics
*/
public class UTransStats
{
public CountTimeStat committedTrans;
public CountTimeStat groupCompletes;
public long lGroupFinished;
public CountTimeStat abortedTrans;
private static native void initIDs();
}