Class TagScriptManager.TagScriptDispatcher
java.lang.Object
com.inductiveautomation.ignition.common.sqltags.scripts.TagScriptManager.TagScriptDispatcher
- All Implemented Interfaces:
TagScriptEvaluator
,Runnable
- Enclosing class:
- TagScriptManager
protected class TagScriptManager.TagScriptDispatcher
extends Object
implements Runnable, TagScriptEvaluator
This is the actual returned evaluator. The basic goal is that we want to execute tasks asynchronously, without
allowing them to back up. So we create one of these per tag, and it manages tracking the number of outstanding
events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected CompiledTagScript
Returns the script ids that are defined on this evaluator.void
Executes the script defined for the given id against the source object provided.protected void
protected TagScriptManager.Task
pop()
protected void
void
run()
int
size()
-
Constructor Details
-
TagScriptDispatcher
public TagScriptDispatcher()
-
-
Method Details
-
addScript
-
getDefinedIds
Description copied from interface:TagScriptEvaluator
Returns the script ids that are defined on this evaluator. Primarily for information purposes, since the evaluator doesn't mind if invoke is called for non-defined ids.- Specified by:
getDefinedIds
in interfaceTagScriptEvaluator
-
size
public int size() -
find
-
invoke
public void invoke(String id, Tag source, TagPath sourcePath, TagScriptMonitor status, Object... params) Description copied from interface:TagScriptEvaluator
Executes the script defined for the given id against the source object provided.- Specified by:
invoke
in interfaceTagScriptEvaluator
-
push
-
pop
-
maybeSchedule
protected void maybeSchedule() -
run
public void run()
-