jni adapter for process monitor added.

This commit is contained in:
Zhen Tang 2013-07-15 10:43:41 +08:00
parent a459d73a68
commit 679d810ce0
8 changed files with 821 additions and 301 deletions

View File

@ -153,6 +153,7 @@
<ClInclude Include="Native.h" />
<ClInclude Include="NetworkInterfaceMonitor.h" />
<ClInclude Include="PhysicalDiskMonitor.h" />
<ClInclude Include="ProcessMonitor.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="TCPv4Monitor.h" />
<ClInclude Include="TCPv6Monitor.h" />
@ -179,6 +180,7 @@
<ClCompile Include="MemoryMonitor.cpp" />
<ClCompile Include="NetworkInterfaceMonitor.cpp" />
<ClCompile Include="PhysicalDiskMonitor.cpp" />
<ClCompile Include="ProcessMonitor.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>

View File

@ -51,6 +51,9 @@
<ClInclude Include="UDPv6Monitor.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="ProcessMonitor.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
@ -86,5 +89,8 @@
<ClCompile Include="UDPv6Monitor.cpp">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="ProcessMonitor.cpp">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@ -7,189 +7,189 @@
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getInstances
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getInstances
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getInstances
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getInstances
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getCurrentDiskQueueLength
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getCurrentDiskQueueLength
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getCurrentDiskQueueLength
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getCurrentDiskQueueLength
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskReadQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskReadQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskReadQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskReadQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWriteTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWriteTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWriteTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWriteTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskWriteQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskWriteQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskWriteQueueLength
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskWriteQueueLength
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskTransferTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskTransferTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskTransferTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskTransferTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskReadTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskReadTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskReadTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskReadTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskWriteTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskWriteTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskWriteTimeInSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskWriteTimeInSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskTransfersPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskTransfersPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskTransfersPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskTransfersPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWritesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWritesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWritesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWritesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskReadBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskReadBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWriteBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWriteBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getDiskWriteBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getDiskWriteBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerTransfer
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerTransfer
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerTransfer
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerTransfer
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerRead
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerRead
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerRead
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerRead
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerWrite
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerWrite
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getAverageDiskBytesPerWrite
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getAverageDiskBytesPerWrite
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getIdleTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getIdleTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getIdleTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getIdleTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getSplitIOPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getSplitIOPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_PhysicalDiskMonitor
* Method: getSplitIOPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_PhysicalDiskMonitor_getSplitIOPerSecond
(JNIEnv *, jobject, jstring, jint);
#ifdef __cplusplus
}

View File

@ -0,0 +1,247 @@
#include "stdafx.h"
#include "ProcessMonitor.h"
#include "Common.h"
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getInstances
(JNIEnv * environment, jobject object)
{
list<wstring> instances=Process::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(GetUTF8String((*iter).c_str())));
i++;
}
return array;
}
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getCounterList
(JNIEnv * environment, jobject object)
{
list<wstring> counterList=Process::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(GetUTF8String((*iter).c_str())));
i++;
}
return array;
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getProcessorTimePercent
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetProcessorTimePercent(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getUserTimePercent
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetUserTimePercent(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivilegedTimePercent
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetPrivilegedTimePercent(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getVirtualBytesPeak
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetVirtualBytesPeak(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getVirtualBytes
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetVirtualBytes(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFaultsPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetPageFaultsPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getWorkingSetPeak
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetWorkingSetPeak(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getWorkingSet
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetWorkingSet(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFileBytesPeak
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPageFileBytesPeak(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFileBytes
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPageFileBytes(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivateBytes
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPrivateBytes(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getThreadCount
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetThreadCount(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPriorityBase
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPriorityBase(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getElapsedTime
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetElapsedTime(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getProcessId
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetProcessId(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getCreatingProcessId
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetCreatingProcessId(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPoolPagedBytes
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPoolPagedBytes(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPoolNonpagedBytes
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPoolNonpagedBytes(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getHandleCount
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetHandleCount(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOReadOperationsPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOReadOperationsPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOWriteOperationsPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOWriteOperationsPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIODataOperationsPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIODataOperationsPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOOtherOperationsPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOOtherOperationsPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOReadBytesPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOReadBytesPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOWriteBytesPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOWriteBytesPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIODataBytesPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIODataBytesPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOOtherBytesPerSecond
(JNIEnv * environment, jobject object, jstring instanceName, jint idleTime)
{
return Process::GetIOOtherBytesPerSecond(
Common::StringToWideString(GetJString(environment,instanceName)).c_str()
,idleTime);
}
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivateWorkingSet
(JNIEnv * environment, jobject object, jstring instanceName)
{
return Process::GetPrivateWorkingSet(
Common::StringToWideString(GetJString(environment,instanceName)).c_str());
}

View File

@ -0,0 +1,253 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class org_bench4q_monitor_performance_windows_ProcessMonitor */
#ifndef _Included_org_bench4q_monitor_performance_windows_ProcessMonitor
#define _Included_org_bench4q_monitor_performance_windows_ProcessMonitor
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getInstances
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getInstances
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getProcessorTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getProcessorTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getUserTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getUserTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPrivilegedTimePercent
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivilegedTimePercent
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getVirtualBytesPeak
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getVirtualBytesPeak
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getVirtualBytes
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getVirtualBytes
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPageFaultsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFaultsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getWorkingSetPeak
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getWorkingSetPeak
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getWorkingSet
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getWorkingSet
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPageFileBytesPeak
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFileBytesPeak
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPageFileBytes
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPageFileBytes
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPrivateBytes
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivateBytes
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getThreadCount
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getThreadCount
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPriorityBase
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPriorityBase
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getElapsedTime
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getElapsedTime
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getProcessId
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getProcessId
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getCreatingProcessId
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getCreatingProcessId
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPoolPagedBytes
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPoolPagedBytes
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPoolNonpagedBytes
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPoolNonpagedBytes
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getHandleCount
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getHandleCount
(JNIEnv *, jobject, jstring);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOReadOperationsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOReadOperationsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOWriteOperationsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOWriteOperationsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIODataOperationsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIODataOperationsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOOtherOperationsPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOOtherOperationsPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOReadBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOReadBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOWriteBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOWriteBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIODataBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIODataBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getIOOtherBytesPerSecond
* Signature: (Ljava/lang/String;I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getIOOtherBytesPerSecond
(JNIEnv *, jobject, jstring, jint);
/*
* Class: org_bench4q_monitor_performance_windows_ProcessMonitor
* Method: getPrivateWorkingSet
* Signature: (Ljava/lang/String;)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_ProcessMonitor_getPrivateWorkingSet
(JNIEnv *, jobject, jstring);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -7,85 +7,85 @@
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsEstablished
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsEstablished
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsEstablished
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsEstablished
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsActive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsActive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsActive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsActive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsPassive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsPassive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsPassive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsPassive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionFailures
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionFailures
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionFailures
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionFailures
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsReset
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsReset
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getConnectionsReset
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getConnectionsReset
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsReceivedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsReceivedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsReceivedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsReceivedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsSentPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsSentPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsSentPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsSentPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsRetransmittedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsRetransmittedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv4Monitor
* Method: getSegmentsRetransmittedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv4Monitor_getSegmentsRetransmittedPerSecond
(JNIEnv *, jobject, jint);
#ifdef __cplusplus
}

View File

@ -7,85 +7,85 @@
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getCounterList
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getCounterList
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsEstablished
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsEstablished
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsEstablished
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsEstablished
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsActive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsActive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsActive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsActive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsPassive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsPassive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsPassive
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsPassive
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionFailures
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionFailures
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionFailures
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionFailures
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsReset
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsReset
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getConnectionsReset
* Signature: ()D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getConnectionsReset
(JNIEnv *, jobject);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsReceivedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsReceivedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsReceivedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsReceivedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsSentPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsSentPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsSentPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsSentPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsRetransmittedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsRetransmittedPerSecond
(JNIEnv *, jobject, jint);
/*
* Class: org_bench4q_monitor_performance_windows_TCPv6Monitor
* Method: getSegmentsRetransmittedPerSecond
* Signature: (I)D
*/
JNIEXPORT jdouble JNICALL Java_org_bench4q_monitor_performance_windows_TCPv6Monitor_getSegmentsRetransmittedPerSecond
(JNIEnv *, jobject, jint);
#ifdef __cplusplus
}

View File

@ -6,6 +6,7 @@ import org.bench4q.monitor.performance.windows.LogicalDiskMonitor;
import org.bench4q.monitor.performance.windows.MemoryMonitor;
import org.bench4q.monitor.performance.windows.NetworkInterfaceMonitor;
import org.bench4q.monitor.performance.windows.PhysicalDiskMonitor;
import org.bench4q.monitor.performance.windows.ProcessMonitor;
import org.bench4q.monitor.performance.windows.TCPv4Monitor;
import org.bench4q.monitor.performance.windows.TCPv6Monitor;
import org.bench4q.monitor.performance.windows.UDPv4Monitor;
@ -101,6 +102,17 @@ public class Main {
System.out.println(elem);
}
ProcessMonitor processMonitor = new ProcessMonitor();
String[] processInstances = processMonitor.getInstances();
for (String elem : processInstances) {
System.out.println(elem);
}
String[] processCounter = processMonitor.getCounterList();
for (String elem : processCounter) {
System.out.println(elem);
}
TCPv4Monitor tcpv4Monitor = new TCPv4Monitor();
String[] tcpv4Counter = tcpv4Monitor.getCounterList();
for (String elem : tcpv4Counter) {