public class ScriptConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MessageHandlerManager |
messageHandlerManager |
protected java.util.Map<MessageHandlerKey,java.lang.String> |
messageHandlerScripts |
static java.lang.String |
MODULE_ID |
static java.lang.String |
RESOURCE_TYPE |
protected java.lang.String |
shutdownScript |
protected java.lang.String |
startupScript |
protected TagChangeScriptManager |
tagChangeManager |
protected java.util.List<TagChangeScript> |
tagChangeScripts |
protected TimerScriptManager |
timerScriptManager |
protected java.util.Map<TimerKey,java.lang.String> |
timerScripts |
Constructor and Description |
---|
ScriptConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ScriptExecutionReport> |
getMessageHandlerExecutionReports() |
MessageHandlerManager |
getMessageHandlerManager()
Returns an instance of the MessageHandlerManager so that the client can register a push listener and use
this manager.
|
java.util.Map<MessageHandlerKey,java.lang.String> |
getMessageHandlerScripts() |
java.lang.String |
getShutdownScript() |
java.lang.String |
getStartupScript() |
java.util.List<ScriptExecutionReport> |
getTagChangeScriptExecutionReports() |
java.util.List<TagChangeScript> |
getTagChangeScripts() |
java.util.List<ScriptExecutionReport> |
getTimerScriptExecutionReports() |
java.util.Map<TimerKey,java.lang.String> |
getTimerScripts() |
void |
invokeGWMessageHandler(java.lang.String messageHandlerName,
org.python.core.PyDictionary messageParams) |
void |
setMessageHandlerScripts(java.util.Map<MessageHandlerKey,java.lang.String> map) |
void |
setShutdownScript(java.lang.String string) |
void |
setStartupScript(java.lang.String string) |
void |
setTagChangeScripts(java.util.List<TagChangeScript> scripts) |
void |
setTagChangeScripts(java.util.Map<java.lang.String,java.lang.String> oldMap)
Deprecated.
|
void |
setTimerScripts(java.util.Map<TimerKey,java.lang.String> map) |
void |
shutdown()
Shuts down long-running tasks in the script config, such as timer scripts and tag change
scripts
|
void |
startup(java.lang.String projectName,
ScriptManager manager,
TagSubscriptionManager tagManager,
IScriptsEnabled scriptsEnabled) |
public static final java.lang.String MODULE_ID
public static final java.lang.String RESOURCE_TYPE
protected java.lang.String startupScript
protected java.lang.String shutdownScript
protected java.util.Map<TimerKey,java.lang.String> timerScripts
protected java.util.Map<MessageHandlerKey,java.lang.String> messageHandlerScripts
protected java.util.List<TagChangeScript> tagChangeScripts
protected transient TimerScriptManager timerScriptManager
protected transient TagChangeScriptManager tagChangeManager
protected transient MessageHandlerManager messageHandlerManager
public java.lang.String getShutdownScript()
public java.lang.String getStartupScript()
public void setShutdownScript(java.lang.String string)
public void setStartupScript(java.lang.String string)
public java.util.Map<TimerKey,java.lang.String> getTimerScripts()
public void setTimerScripts(java.util.Map<TimerKey,java.lang.String> map)
public java.util.Map<MessageHandlerKey,java.lang.String> getMessageHandlerScripts()
public void setMessageHandlerScripts(java.util.Map<MessageHandlerKey,java.lang.String> map)
@Deprecated public void setTagChangeScripts(java.util.Map<java.lang.String,java.lang.String> oldMap)
public java.util.List<TagChangeScript> getTagChangeScripts()
public void setTagChangeScripts(java.util.List<TagChangeScript> scripts)
public void startup(java.lang.String projectName, ScriptManager manager, TagSubscriptionManager tagManager, IScriptsEnabled scriptsEnabled)
public void shutdown()
public java.util.List<ScriptExecutionReport> getTimerScriptExecutionReports()
public java.util.List<ScriptExecutionReport> getTagChangeScriptExecutionReports()
public MessageHandlerManager getMessageHandlerManager()
public java.util.List<ScriptExecutionReport> getMessageHandlerExecutionReports()
public void invokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams) throws MessageHandlerException
MessageHandlerException