Class ScriptConfig
- java.lang.Object
-
- com.inductiveautomation.ignition.common.script.ScriptConfig
-
- Direct Known Subclasses:
ClientScriptConfig,SystemEventsConfig
public class ScriptConfig extends java.lang.ObjectThis class is simply a storage class for the serialization of various script configuration things. An instance of this class is held by the root FPMIApp and it stores things like the startup and shutdown scripts, the keystroke scripts, and the timer scripts.
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageHandlerManagermessageHandlerManagerprotected java.util.Map<MessageHandlerKey,java.lang.String>messageHandlerScriptsstatic java.lang.StringMODULE_IDstatic ResourceTypeRESOURCE_TYPEprotected ScheduledScriptManagerscheduledScriptManagerprotected java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript>scheduledScriptsprotected java.lang.StringshutdownScriptprotected java.lang.StringstartupScriptprotected TagChangeScriptManagertagChangeManagerprotected java.util.List<TagChangeScript>tagChangeScriptsprotected TimerScriptManagertimerScriptManagerprotected java.util.Map<TimerKey,java.lang.String>timerScriptsprotected java.lang.StringupdateScript
-
Constructor Summary
Constructors Constructor Description ScriptConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<ScriptExecutionReport>getMessageHandlerExecutionReports()MessageHandlerManagergetMessageHandlerManager()Returns an instance of the MessageHandlerManager so that the client can register a push listener and use this manager.java.util.List<ProjectScriptDiagnostic>getMessageHandlerScriptDiagnostics()java.util.Map<MessageHandlerKey,java.lang.String>getMessageHandlerScripts()java.util.List<ProjectScriptDiagnostic>getScheduledScriptDiagnostics()java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript>getScheduledScripts()java.lang.StringgetShutdownScript()java.lang.StringgetStartupScript()java.util.List<ProjectScriptDiagnostic>getTagChangeScriptDiagnostics()java.util.List<ScriptExecutionReport>getTagChangeScriptExecutionReports()java.util.List<TagChangeScript>getTagChangeScripts()java.util.List<ProjectScriptDiagnostic>getTimerScriptDiagnostics()java.util.List<ScriptExecutionReport>getTimerScriptExecutionReports()java.util.Map<TimerKey,java.lang.String>getTimerScripts()java.lang.StringgetUpdateScript()voidinvokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams)Deprecated.voidinvokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, java.util.Properties filterParams)voidinvokeGWRequestHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler)Deprecated.voidinvokeGWRequestHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler, java.util.Properties filterParams)voidsetMessageHandlerScripts(java.util.Map<MessageHandlerKey,java.lang.String> map)voidsetScheduledScripts(java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts)voidsetShutdownScript(java.lang.String string)voidsetStartupScript(java.lang.String string)voidsetTagChangeScripts(java.util.List<TagChangeScript> scripts)voidsetTagChangeScripts(java.util.Map<java.lang.String,java.lang.String> oldMap)Deprecated.voidsetTimerScripts(java.util.Map<TimerKey,java.lang.String> map)voidsetUpdateScript(java.lang.String updateScript)voidshutdown()Shuts down long-running tasks in the script config, such as timer scripts and tag change scriptsvoidstartup(java.lang.String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled)
-
-
-
Field Detail
-
MODULE_ID
public static final java.lang.String MODULE_ID
- See Also:
- Constant Field Values
-
RESOURCE_TYPE
public static final ResourceType RESOURCE_TYPE
-
startupScript
protected java.lang.String startupScript
-
shutdownScript
protected java.lang.String shutdownScript
-
updateScript
protected java.lang.String updateScript
-
timerScripts
protected java.util.Map<TimerKey,java.lang.String> timerScripts
-
messageHandlerScripts
protected java.util.Map<MessageHandlerKey,java.lang.String> messageHandlerScripts
-
tagChangeScripts
protected java.util.List<TagChangeScript> tagChangeScripts
-
scheduledScripts
protected java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts
-
timerScriptManager
protected transient TimerScriptManager timerScriptManager
-
tagChangeManager
protected transient TagChangeScriptManager tagChangeManager
-
messageHandlerManager
protected transient MessageHandlerManager messageHandlerManager
-
scheduledScriptManager
protected transient ScheduledScriptManager scheduledScriptManager
-
-
Method Detail
-
getShutdownScript
public java.lang.String getShutdownScript()
-
getStartupScript
public java.lang.String getStartupScript()
-
setShutdownScript
public void setShutdownScript(java.lang.String string)
-
setStartupScript
public void setStartupScript(java.lang.String string)
-
getUpdateScript
public java.lang.String getUpdateScript()
-
setUpdateScript
public void setUpdateScript(java.lang.String updateScript)
-
getTimerScripts
@Nonnull public java.util.Map<TimerKey,java.lang.String> getTimerScripts()
-
setTimerScripts
public void setTimerScripts(java.util.Map<TimerKey,java.lang.String> map)
-
getMessageHandlerScripts
@Nonnull public java.util.Map<MessageHandlerKey,java.lang.String> getMessageHandlerScripts()
-
setMessageHandlerScripts
public void setMessageHandlerScripts(java.util.Map<MessageHandlerKey,java.lang.String> map)
-
setTagChangeScripts
@Deprecated public void setTagChangeScripts(java.util.Map<java.lang.String,java.lang.String> oldMap)
Deprecated.
-
getTagChangeScripts
@Nonnull public java.util.List<TagChangeScript> getTagChangeScripts()
-
setScheduledScripts
public void setScheduledScripts(java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts)
-
getScheduledScripts
@Nonnull public java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript> getScheduledScripts()
-
setTagChangeScripts
public void setTagChangeScripts(java.util.List<TagChangeScript> scripts)
-
startup
public void startup(java.lang.String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled)
-
shutdown
public void shutdown()
Shuts down long-running tasks in the script config, such as timer scripts and tag change scripts
-
getTimerScriptExecutionReports
public java.util.List<ScriptExecutionReport> getTimerScriptExecutionReports()
-
getTagChangeScriptExecutionReports
public java.util.List<ScriptExecutionReport> getTagChangeScriptExecutionReports()
-
getTimerScriptDiagnostics
public java.util.List<ProjectScriptDiagnostic> getTimerScriptDiagnostics()
-
getTagChangeScriptDiagnostics
public java.util.List<ProjectScriptDiagnostic> getTagChangeScriptDiagnostics()
-
getMessageHandlerScriptDiagnostics
public java.util.List<ProjectScriptDiagnostic> getMessageHandlerScriptDiagnostics()
-
getScheduledScriptDiagnostics
public java.util.List<ProjectScriptDiagnostic> getScheduledScriptDiagnostics()
-
getMessageHandlerManager
public MessageHandlerManager getMessageHandlerManager()
Returns an instance of the MessageHandlerManager so that the client can register a push listener and use this manager.
-
getMessageHandlerExecutionReports
public java.util.List<ScriptExecutionReport> getMessageHandlerExecutionReports()
-
invokeGWRequestHandler
@Deprecated public void invokeGWRequestHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler) throws MessageHandlerExceptionDeprecated.- Throws:
MessageHandlerException
-
invokeGWRequestHandler
public void invokeGWRequestHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, MessageResultHandler handler, java.util.Properties filterParams) throws MessageHandlerException- Throws:
MessageHandlerException
-
invokeGWMessageHandler
@Deprecated public void invokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams) throws MessageHandlerExceptionDeprecated.- Throws:
MessageHandlerException
-
invokeGWMessageHandler
public void invokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, java.util.Properties filterParams) throws MessageHandlerException- Throws:
MessageHandlerException
-
-