16 #ifndef _IGNITE_JNI_UTILS
17 #define _IGNITE_JNI_UTILS
21 #include <ignite/common/common.h>
22 #include <ignite/common/concurrent.h>
23 #include <ignite/jni/java.h>
67 JavaGlobalRef(common::concurrent::SharedPointer<java::JniContext>& ctx, jobject obj)
81 Init(other.ctx, other.obj);
94 java::JniContext::Release(obj);
96 Init(other.ctx, other.obj);
107 java::JniContext::Release(obj);
122 void Init(
const common::concurrent::SharedPointer<java::JniContext>& ctx0, jobject obj0) {
126 this->obj = ctx.Get()->Acquire(obj0);
130 common::concurrent::SharedPointer<java::JniContext> ctx;
144 IGNITE_IMPORT_EXPORT std::string FindJvmLibrary(
const std::string& path);
152 IGNITE_IMPORT_EXPORT
bool LoadJvmLibrary(
const std::string& path);
161 IGNITE_IMPORT_EXPORT std::string CreateIgniteHomeClasspath(
const std::string& home,
bool forceTest);
170 IGNITE_IMPORT_EXPORT std::string CreateIgniteClasspath(
const std::string& usrCp,
const std::string& home);
185 IGNITE_IMPORT_EXPORT std::string ResolveIgniteHome(
const std::string& path =
"");
189 #endif //_IGNITE_JNI_UTILS