#include <jni.h>
#include <string>
#include <iostream>
#include "../common/String.h"
#include "../common/JavaVoidMethodCaller.h"
#include "../common/CompileTimeCheck.h"
#include "LoadMonitorNative.h"
#include "LoadMonitor.h"
Functions | |
JNIEXPORT jboolean JNICALL | Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeInitialize (JNIEnv *, jobject) |
Initialize Load Monitor. | |
JNIEXPORT jboolean JNICALL | Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeTerminate (JNIEnv *, jobject) |
Terminate Load Monitor and free all resources. | |
JNIEXPORT jobject JNICALL | Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeGetSample (JNIEnv *env, jobject) |
Take load sample and convert it to the Java-compatible class. | |
JNIEXPORT jobject JNICALL | Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeGetHardwareDescription (JNIEnv *env, jobject) |
Get description of the hardware that is monitored by the library and return its Java representation. | |
Variables | |
lm::LoadMonitor | monitor |
Load Monitor. |
JNIEXPORT jobject JNICALL Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeGetHardwareDescription | ( | JNIEnv * | env, | |
jobject | ||||
) |
Get description of the hardware that is monitored by the library and return its Java representation.
env | Java JNI environment. |
cz.cuni.mff.been.hostmanager.load.HardwareDescription
class with description of the hardware. JNIEXPORT jobject JNICALL Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeGetSample | ( | JNIEnv * | env, | |
jobject | ||||
) |
Take load sample and convert it to the Java-compatible class.
env | Java environment. |
cz.cuni.mff.been.hostmanager.load.LoadSample
class which contains data from last load measurement. JNIEXPORT jboolean JNICALL Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeInitialize | ( | JNIEnv * | , | |
jobject | ||||
) |
Initialize Load Monitor.
JNIEXPORT jboolean JNICALL Java_cz_cuni_mff_been_hostmanager_load_LoadMonitorNative_nativeTerminate | ( | JNIEnv * | , | |
jobject | ||||
) |
Terminate Load Monitor and free all resources.
Load Monitor.