public abstract class BaseThread
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Integer |
paused
flag from Threader indicating if thread is paused
|
Integer |
terminated
flag from Threader indicating if thread is requested to be terminated
|
Constructor and Description |
---|
BaseThread() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up any artifacts not taken care of by the Java VM.
|
java.lang.String |
getName()
Returns the unique name of the thread
|
void |
init(KnowledgeBase context)
Initializes thread with a data plane (a shared MADARA context)
|
abstract void |
run()
Executes the main thread logic.
|
public Integer terminated
public Integer paused
public void init(KnowledgeBase context)
context
- context for querying/modifying current program statepublic abstract void run()
public void cleanup()
public java.lang.String getName()