3 #ifndef _MADARA_THREADS_JAVA_THREAD_H_     4 #define _MADARA_THREADS_JAVA_THREAD_H_    15 #include "madara_jni.h"    49       virtual void run (
void);
   102 #endif  // _MADARA_THREADS_JAVA_THREAD_H_ jmethodID run_method_
handle to the run method 
 
bool check_compliance(jobject obj)
Checks a Java object for compliance with com.madara.threads.BaseThread. 
 
jclass class_
the class of the Java object obj_ 
 
virtual void run(void)
Executes the Java thread's logic. 
 
Provides a quality-of-service-enabled threading library. 
 
virtual void init_control_vars(knowledge::KnowledgeBase &control)
Initializes the Java thread implementation's control plane variables. 
 
Abstract base class for implementing threads. 
 
virtual void cleanup(void)
Calls the Java cleanup method. 
 
This class provides a distributed knowledge base to users. 
 
void operator=(const JavaThread &rhs)
Assignment operator. 
 
virtual void init(knowledge::KnowledgeBase &context)
Initializes Java thread with MADARA context. 
 
jmethodID cleanup_method_
handle to the cleanup method 
 
jmethodID init_method_
handle to the init method 
 
Copyright (c) 2015 Carnegie Mellon University. 
 
jobject obj_
the Java thread implementation of com.madara.threads.BaseThread 
 
A facade for a user-defined Java thread class. 
 
static JavaThread * create(jobject obj)
Creates a JavaThread.