jni adapter for network interface monitor added.
This commit is contained in:
parent
1548ce72c5
commit
853ad0db23
|
@ -7,205 +7,205 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getInstances
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getInstances
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getInstances
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getInstances
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getCounterList
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getCounterList
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getCounterList
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getCounterList
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getFreeSpacePercent
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getFreeSpacePercent
|
||||
(JNIEnv *, jobject, jstring);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getFreeSpacePercent
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getFreeSpacePercent
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getFreeMegabytes
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getFreeMegabytes
|
||||
(JNIEnv *, jobject, jstring);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getFreeMegabytes
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getFreeMegabytes
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getCurrentDiskQueueLength
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getCurrentDiskQueueLength
|
||||
(JNIEnv *, jobject, jstring);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getCurrentDiskQueueLength
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getCurrentDiskQueueLength
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskReadQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskReadQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskReadQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskReadQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWriteTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWriteTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWriteTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWriteTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskWriteQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskWriteQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskWriteQueueLength
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskWriteQueueLength
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskTransferTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskTransferTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskTransferTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskTransferTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskReadTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskReadTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskReadTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskReadTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskWriteTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskWriteTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskWriteTimeInSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskWriteTimeInSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskTransfersPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskTransfersPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskTransfersPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskTransfersPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadsPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadsPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadsPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadsPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWritesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWritesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWritesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWritesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskReadBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskReadBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWriteBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWriteBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getDiskWriteBytesPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getDiskWriteBytesPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerTransfer
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerTransfer
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerTransfer
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerTransfer
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerRead
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerRead
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerRead
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerRead
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerWrite
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerWrite
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getAverageDiskBytesPerWrite
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getAverageDiskBytesPerWrite
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getIdleTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getIdleTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getIdleTimePercent
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getIdleTimePercent
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getSplitIOPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getSplitIOPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_LogicalDiskMonitor
|
||||
* Method: getSplitIOPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_LogicalDiskMonitor_getSplitIOPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -7,301 +7,301 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCounterList
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCounterList
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCounterList
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCounterList
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommittedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommittedBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommittedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommittedBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommitLimit
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommitLimit
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommitLimit
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommitLimit
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getWriteCopiesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getWriteCopiesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getWriteCopiesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getWriteCopiesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getTransitionFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getTransitionFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getTransitionFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getTransitionFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getDemandZeroFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getDemandZeroFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getDemandZeroFaultsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getDemandZeroFaultsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesInputPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesInputPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesInputPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesInputPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageReadsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageReadsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageReadsPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageReadsPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesOutputPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesOutputPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPagesOutputPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPagesOutputPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolNonpagedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolNonpagedBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolNonpagedBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolNonpagedBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageWritesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageWritesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPageWritesPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPageWritesPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedAllocs
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedAllocs
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedAllocs
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedAllocs
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolNonpagedAllocs
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolNonpagedAllocs
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolNonpagedAllocs
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolNonpagedAllocs
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getFreeSystemPageTableEntries
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getFreeSystemPageTableEntries
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getFreeSystemPageTableEntries
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getFreeSystemPageTableEntries
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheBytesPeak
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheBytesPeak
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCacheBytesPeak
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCacheBytesPeak
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getPoolPagedResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getPoolPagedResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCodeTotalBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCodeTotalBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCodeTotalBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCodeTotalBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCodeResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCodeResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCodeResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCodeResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemDriverTotalBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemDriverTotalBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemDriverTotalBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemDriverTotalBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemDriverResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemDriverResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemDriverResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemDriverResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCacheResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCacheResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getSystemCacheResidentBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getSystemCacheResidentBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommittedBytesInUsePercent
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommittedBytesInUsePercent
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getCommittedBytesInUsePercent
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getCommittedBytesInUsePercent
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableKiloBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableKiloBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableKiloBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableKiloBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableMegaBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableMegaBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getAvailableMegaBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getAvailableMegaBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getTransitionPagesRepurposedPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getTransitionPagesRepurposedPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getTransitionPagesRepurposedPerSecond
|
||||
* Signature: (I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getTransitionPagesRepurposedPerSecond
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getFreeAndZeroPageListBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getFreeAndZeroPageListBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getFreeAndZeroPageListBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getFreeAndZeroPageListBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getModifiedPageListBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getModifiedPageListBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getModifiedPageListBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getModifiedPageListBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheReserveBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheReserveBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheReserveBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheReserveBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheNormalPriorityBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheNormalPriorityBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheNormalPriorityBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheNormalPriorityBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheCoreBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheCoreBytes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getStandbyCacheCoreBytes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getStandbyCacheCoreBytes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getLongTermAverageStandbyCacheLifetimes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getLongTermAverageStandbyCacheLifetimes
|
||||
(JNIEnv *, jobject);
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_MemoryMonitor
|
||||
* Method: getLongTermAverageStandbyCacheLifetimes
|
||||
* Signature: ()D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_MemoryMonitor_getLongTermAverageStandbyCacheLifetimes
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -150,6 +150,7 @@
|
|||
<ClInclude Include="MemoryMonitor.h" />
|
||||
<ClInclude Include="MonitorApi.h" />
|
||||
<ClInclude Include="Native.h" />
|
||||
<ClInclude Include="NetworkInterfaceMonitor.h" />
|
||||
<ClInclude Include="stdafx.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
@ -169,6 +170,7 @@
|
|||
</ClCompile>
|
||||
<ClCompile Include="LogicalDiskMonitor.cpp" />
|
||||
<ClCompile Include="MemoryMonitor.cpp" />
|
||||
<ClCompile Include="NetworkInterfaceMonitor.cpp" />
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
<ClInclude Include="MemoryMonitor.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="NetworkInterfaceMonitor.h">
|
||||
<Filter>头文件</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
|
@ -44,5 +47,8 @@
|
|||
<ClCompile Include="MemoryMonitor.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="NetworkInterfaceMonitor.cpp">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,204 @@
|
|||
#include "stdafx.h"
|
||||
#include "NetworkInterfaceMonitor.h"
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getInstances
|
||||
(JNIEnv * environment, jobject object)
|
||||
{
|
||||
list<wstring> instances=NetworkInterface::GetInstances();
|
||||
list<wstring>::iterator iter;
|
||||
long count=(long)instances.size();
|
||||
jobjectArray array=environment->NewObjectArray(
|
||||
count,environment->FindClass("java/lang/String"),environment->NewStringUTF(""));
|
||||
int i=0;
|
||||
for(iter=instances.begin();iter!=instances.end();iter++)
|
||||
{
|
||||
environment->SetObjectArrayElement(array,i
|
||||
,environment->NewStringUTF(Common::WideStringToString(*iter).c_str()));
|
||||
i++;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getCounterList
|
||||
(JNIEnv * environment, jobject object)
|
||||
{
|
||||
list<wstring> counterList=NetworkInterface::GetCounterList();
|
||||
list<wstring>::iterator iter;
|
||||
long count=(long)counterList.size();
|
||||
jobjectArray array=environment->NewObjectArray(
|
||||
count,environment->FindClass("java/lang/String"),environment->NewStringUTF(""));
|
||||
int i=0;
|
||||
for(iter=counterList.begin();iter!=counterList.end();iter++)
|
||||
{
|
||||
environment->SetObjectArrayElement(array,i
|
||||
,environment->NewStringUTF(Common::WideStringToString(*iter).c_str()));
|
||||
i++;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesTotalPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetBytesTotalPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsSentPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getCurrentBandwidth
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetCurrentBandwidth(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesReceivedPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetBytesReceivedPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedUnicastPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedUnicastPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedNonUnicastPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedNonUnicastPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedDiscarded
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedDiscarded(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedErrors
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedErrors(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedUnknown
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetPacketsReceivedUnknown(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesSentPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetBytesSentPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentUnicastPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsSentUnicastPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentNonUnicastPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetPacketsSentNonUnicastPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsOutboundDiscarded
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetPacketsOutboundDiscarded(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsOutboundErrors
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetPacketsOutboundErrors(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getOutputQueueLength
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetOutputQueueLength(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getOffloadedConnections
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetOffloadedConnections(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpActiveRscConnections
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetTcpActiveRscConnections(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscCoalescedPacketsPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetTcpRscCoalescedPacketsPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscExceptionsPerSecond
|
||||
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
|
||||
{
|
||||
return NetworkInterface::GetTcpRscExceptionsPerSecond(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str()
|
||||
,idleTime);
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscAveragePacketSize
|
||||
(JNIEnv * environment, jobject object, jstring instanceName)
|
||||
{
|
||||
return NetworkInterface::GetTcpRscAveragePacketSize(
|
||||
Common::StringToWideString(string(environment->GetStringUTFChars(instanceName,false))).c_str());
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor */
|
||||
|
||||
#ifndef _Included_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
#define _Included_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getInstances
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getInstances
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getCounterList
|
||||
* Signature: ()[Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getCounterList
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getBytesTotalPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesTotalPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsSentPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getCurrentBandwidth
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getCurrentBandwidth
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getBytesReceivedPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesReceivedPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedUnicastPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedUnicastPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedNonUnicastPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedNonUnicastPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedDiscarded
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedDiscarded
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedErrors
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedErrors
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsReceivedUnknown
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsReceivedUnknown
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getBytesSentPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getBytesSentPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsSentUnicastPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentUnicastPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsSentNonUnicastPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsSentNonUnicastPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsOutboundDiscarded
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsOutboundDiscarded
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getPacketsOutboundErrors
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getPacketsOutboundErrors
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getOutputQueueLength
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getOutputQueueLength
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getOffloadedConnections
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getOffloadedConnections
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getTcpActiveRscConnections
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpActiveRscConnections
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getTcpRscCoalescedPacketsPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscCoalescedPacketsPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getTcpRscExceptionsPerSecond
|
||||
* Signature: (Ljava/lang/String;I)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscExceptionsPerSecond
|
||||
(JNIEnv *, jobject, jstring, jint);
|
||||
|
||||
/*
|
||||
* Class: org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor
|
||||
* Method: getTcpRscAveragePacketSize
|
||||
* Signature: (Ljava/lang/String;)D
|
||||
*/
|
||||
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_NetworkInterfaceMonitor_getTcpRscAveragePacketSize
|
||||
(JNIEnv *, jobject, jstring);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
|
@ -1,9 +1,11 @@
|
|||
package org.bench4q.monitor;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.NetworkInterface;
|
||||
|
||||
import org.bench4q.monitor.performance.windows.LogicalDiskMonitor;
|
||||
import org.bench4q.monitor.performance.windows.MemoryMonitor;
|
||||
import org.bench4q.monitor.performance.windows.NetworkInterfaceMonitor;
|
||||
|
||||
public class Main {
|
||||
static {
|
||||
|
@ -50,23 +52,39 @@ public class Main {
|
|||
|
||||
public static void main(String[] args) {
|
||||
LogicalDiskMonitor logicalDiskMonitor = new LogicalDiskMonitor();
|
||||
String[] instances = logicalDiskMonitor.getInstances();
|
||||
for (String elem : instances) {
|
||||
String[] logicalDiskInstances = logicalDiskMonitor.getInstances();
|
||||
for (String elem : logicalDiskInstances) {
|
||||
System.out.println(elem);
|
||||
}
|
||||
String[] counterList = logicalDiskMonitor.getCounterList();
|
||||
for (String elem : counterList) {
|
||||
String[] logicalDiskCounter = logicalDiskMonitor.getCounterList();
|
||||
for (String elem : logicalDiskCounter) {
|
||||
System.out.println(elem);
|
||||
}
|
||||
System.out.println(logicalDiskMonitor.getFreeMegabytes("_Total"));
|
||||
MemoryMonitor memoryMonitor=new MemoryMonitor();
|
||||
String[] list=memoryMonitor.getCounterList();
|
||||
for (String elem : list) {
|
||||
|
||||
MemoryMonitor memoryMonitor = new MemoryMonitor();
|
||||
String[] memoryCounter = memoryMonitor.getCounterList();
|
||||
for (String elem : memoryCounter) {
|
||||
System.out.println(elem);
|
||||
}
|
||||
System.out.println(memoryMonitor.getAvailableBytes());
|
||||
System.out.println(memoryMonitor.getAvailableKiloBytes());
|
||||
System.out.println(memoryMonitor.getAvailableMegaBytes());
|
||||
|
||||
NetworkInterfaceMonitor networkInterfaceMonitor = new NetworkInterfaceMonitor();
|
||||
String[] networkInterfaceInstances = networkInterfaceMonitor
|
||||
.getInstances();
|
||||
for (String elem : networkInterfaceInstances) {
|
||||
System.out.println(elem);
|
||||
System.out.println("bandwidth:"
|
||||
+ networkInterfaceMonitor.getCurrentBandwidth(elem));
|
||||
}
|
||||
String[] networkInterfaceCounter = networkInterfaceMonitor
|
||||
.getCounterList();
|
||||
for (String elem : networkInterfaceCounter) {
|
||||
System.out.println(elem);
|
||||
}
|
||||
|
||||
MonitorServer monitorServer = new MonitorServer(5555);
|
||||
monitorServer.start();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,61 @@
|
|||
package org.bench4q.monitor.performance.windows;
|
||||
|
||||
public class NetworkInterfaceMonitor {
|
||||
public native String[] getInstances();
|
||||
|
||||
public native String[] getCounterList();
|
||||
|
||||
public native double getBytesTotalPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getPacketsPerSecond(String instanceName, int idleTime);
|
||||
|
||||
public native double getPacketsReceivedPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getPacketsSentPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getCurrentBandwidth(String instanceName);
|
||||
|
||||
public native double getBytesReceivedPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getPacketsReceivedUnicastPerSecond(
|
||||
String instanceName, int idleTime);
|
||||
|
||||
public native double getPacketsReceivedNonUnicastPerSecond(
|
||||
String instanceName, int idleTime);
|
||||
|
||||
public native double getPacketsReceivedDiscarded(String instanceName);
|
||||
|
||||
public native double getPacketsReceivedErrors(String instanceName);
|
||||
|
||||
public native double getPacketsReceivedUnknown(String instanceName);
|
||||
|
||||
public native double getBytesSentPerSecond(String instanceName, int idleTime);
|
||||
|
||||
public native double getPacketsSentUnicastPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getPacketsSentNonUnicastPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getPacketsOutboundDiscarded(String instanceName);
|
||||
|
||||
public native double getPacketsOutboundErrors(String instanceName);
|
||||
|
||||
public native double getOutputQueueLength(String instanceName);
|
||||
|
||||
public native double getOffloadedConnections(String instanceName);
|
||||
|
||||
public native double getTcpActiveRscConnections(String instanceName);
|
||||
|
||||
public native double getTcpRscCoalescedPacketsPerSecond(
|
||||
String instanceName, int idleTime);
|
||||
|
||||
public native double getTcpRscExceptionsPerSecond(String instanceName,
|
||||
int idleTime);
|
||||
|
||||
public native double getTcpRscAveragePacketSize(String instanceName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue