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 SummaryFields 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 SummaryConstructors Constructor Description ScriptConfig()
 - 
Method SummaryAll 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_IDpublic static final java.lang.String MODULE_ID - See Also:
- Constant Field Values
 
 - 
RESOURCE_TYPEpublic static final ResourceType RESOURCE_TYPE 
 - 
startupScriptprotected java.lang.String startupScript 
 - 
shutdownScriptprotected java.lang.String shutdownScript 
 - 
updateScriptprotected java.lang.String updateScript 
 - 
timerScriptsprotected java.util.Map<TimerKey,java.lang.String> timerScripts 
 - 
messageHandlerScriptsprotected java.util.Map<MessageHandlerKey,java.lang.String> messageHandlerScripts 
 - 
tagChangeScriptsprotected java.util.List<TagChangeScript> tagChangeScripts 
 - 
scheduledScriptsprotected java.util.List<com.inductiveautomation.ignition.common.script.ScheduledScript> scheduledScripts 
 - 
timerScriptManagerprotected transient TimerScriptManager timerScriptManager 
 - 
tagChangeManagerprotected transient TagChangeScriptManager tagChangeManager 
 - 
messageHandlerManagerprotected transient MessageHandlerManager messageHandlerManager 
 - 
scheduledScriptManagerprotected transient ScheduledScriptManager scheduledScriptManager 
 
- 
 - 
Method Detail- 
getShutdownScriptpublic java.lang.String getShutdownScript() 
 - 
getStartupScriptpublic java.lang.String getStartupScript() 
 - 
setShutdownScriptpublic void setShutdownScript(java.lang.String string) 
 - 
setStartupScriptpublic void setStartupScript(java.lang.String string) 
 - 
getUpdateScriptpublic java.lang.String getUpdateScript() 
 - 
setUpdateScriptpublic void setUpdateScript(java.lang.String updateScript) 
 - 
getTimerScripts@Nonnull public java.util.Map<TimerKey,java.lang.String> getTimerScripts() 
 - 
setTimerScriptspublic void setTimerScripts(java.util.Map<TimerKey,java.lang.String> map) 
 - 
getMessageHandlerScripts@Nonnull public java.util.Map<MessageHandlerKey,java.lang.String> getMessageHandlerScripts() 
 - 
setMessageHandlerScriptspublic 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() 
 - 
setScheduledScriptspublic 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() 
 - 
setTagChangeScriptspublic void setTagChangeScripts(java.util.List<TagChangeScript> scripts) 
 - 
startuppublic void startup(java.lang.String projectName, ScriptManager manager, TagManager tagManager, IScriptsEnabled scriptsEnabled)
 - 
shutdownpublic void shutdown() Shuts down long-running tasks in the script config, such as timer scripts and tag change scripts
 - 
getTimerScriptExecutionReportspublic java.util.List<ScriptExecutionReport> getTimerScriptExecutionReports() 
 - 
getTagChangeScriptExecutionReportspublic java.util.List<ScriptExecutionReport> getTagChangeScriptExecutionReports() 
 - 
getTimerScriptDiagnosticspublic java.util.List<ProjectScriptDiagnostic> getTimerScriptDiagnostics() 
 - 
getTagChangeScriptDiagnosticspublic java.util.List<ProjectScriptDiagnostic> getTagChangeScriptDiagnostics() 
 - 
getMessageHandlerScriptDiagnosticspublic java.util.List<ProjectScriptDiagnostic> getMessageHandlerScriptDiagnostics() 
 - 
getScheduledScriptDiagnosticspublic java.util.List<ProjectScriptDiagnostic> getScheduledScriptDiagnostics() 
 - 
getMessageHandlerManagerpublic MessageHandlerManager getMessageHandlerManager() Returns an instance of the MessageHandlerManager so that the client can register a push listener and use this manager.
 - 
getMessageHandlerExecutionReportspublic 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
 
 - 
invokeGWRequestHandlerpublic 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
 
 - 
invokeGWMessageHandlerpublic void invokeGWMessageHandler(java.lang.String messageHandlerName, org.python.core.PyDictionary messageParams, java.util.Properties filterParams) throws MessageHandlerException- Throws:
- MessageHandlerException
 
 
- 
 
-