3 #ifndef _MADARA_THREADS_JAVA_THREAD_H_
4 #define _MADARA_THREADS_JAVA_THREAD_H_
16 #include "madara_jni.h"
49 virtual void run(
void);
This class provides a distributed knowledge base to users.
Abstract base class for implementing threads.
A facade for a user-defined Java thread class.
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
void operator=(const JavaThread &rhs)
Assignment operator.
jclass class_
the class of the Java object obj_
static JavaThread * create(jobject obj)
Creates a JavaThread.
virtual void run(void)
Executes the Java thread's logic.
virtual void init_control_vars(knowledge::KnowledgeBase &control)
Initializes the Java thread implementation's control plane variables.
bool check_compliance(jobject obj)
Checks a Java object for compliance with ai.madara.threads.BaseThread.
virtual void cleanup(void)
Calls the Java cleanup method.
jmethodID run_method_
handle to the run method
jobject obj_
the Java thread implementation of ai.madara.threads.BaseThread
Provides a quality-of-service-enabled threading library.
Copyright(c) 2020 Galois.